summaryrefslogtreecommitdiffstats
path: root/templates/news/view.html
blob: 1c92fe789c24f5ca7cd234aeb82cf37a239f6f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "base.html" %}
{% load markup %}
{% block title %}Arch Linux - News: {{ news.title }}{% endblock %}

{% block content %}
<div class="news-article box">

    <h2>News: {{ news.title }}</h2>

    {% if perms.main.change_news %}
    <ul class="admin-actions">
        <li><a href="/news/edit/{{ news.id }}/" title="Edit this article">Edit News Item</a></li>
        {% if perms.main.delete_news %}
        <li><a href="/news/delete/{{ news.id }}/" title="Delete this article">Delete News Item</a></li>
        {% endif %}
    </ul>
    {% endif %}

    <p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>

    <div class="article-content">{{ news.content|markdown }}</div>

</div>
{% endblock %}