bornhack-website/news/templates/news_detail.html

15 lines
442 B
HTML

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