bornhack-website/news/templates/news_detail.html

15 lines
471 B
HTML

{% extends 'base.html' %}
{% load commonmark %}
{% block content %}
<div>
{% if not_public %}
<div class="alert alert-danger">
<strong>This news item is not yet public.</strong> {% if timed %}It will become public at {{ news_item.published_at|date:'Y-m-d H:i' }}.{% endif%}
</div>
{% endif %}
<h3>{{ news_item.title }} <small>{{ news_item.published_at|date:"Y-m-d" }}</small></h3>
</div>
{{ news_item.content|commonmark }}
{% endblock %}