~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/news/post_list.html

  • Committer: franku
  • Date: 2018-11-15 20:39:35 UTC
  • mfrom: (504.1.1 widelands)
  • Revision ID: somal@arcor.de-20181115203935-2j4ip880mi4b3mzv
redesign the website to show tabs for some pages and give an additional header section with important links

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends "news/base_news.html" %}
2
2
 
3
 
{% block content %}
4
 
 
5
 
<h1>News Archive</h1>
6
 
<div class="linksBox">
7
 
        <a href="{% url 'news_index' %}">News Archive: </a>
8
 
        {% for dateobj in date_list reversed %}
9
 
                <a href="{% url 'news_index' %}{{ dateobj|date:'Y' }}">{{ dateobj|date:'Y' }}</a>
10
 
                {% if not forloop.last %} | {% endif %}
11
 
        {% endfor%}
12
 
</div>
13
 
{% if perms.news %}
14
 
        <div class="small posRight linksBox">
15
 
                {% if perms.news.add_post %}<a href="/admin/news/post/add/">Add New News</a>{% endif %}
 
3
{% block content_header %}
 
4
        <h1>News Archive</h1><br />
 
5
        <div class="linksBox">
 
6
                <a href="{% url 'news_index' %}">News Archive: </a>
 
7
                {% for dateobj in date_list reversed %}
 
8
                        <a href="{% url 'news_index' %}{{ dateobj|date:'Y' }}">{{ dateobj|date:'Y' }}</a>
 
9
                        {% if not forloop.last %} | {% endif %}
 
10
                {% endfor%}
16
11
        </div>
17
 
{% endif %}
18
 
 
 
12
{% endblock %}
 
13
 
 
14
 
 
15
{% block content_tabbing %}
 
16
        {% if perms.news %}
 
17
        <ul class="small tab-list">
 
18
                <li>
 
19
                {% if perms.news.add_post %}
 
20
                        <a href="/admin/news/post/add/">Add New News</a>
 
21
                {% endif %}
 
22
                </li>
 
23
        </ul>
 
24
        {% endif %}
 
25
{% endblock %}
 
26
 
 
27
{% block content_main %}
19
28
{% include "news/inlines/posts_table.html" %}
20
29
 
21
30
{% endblock %}