~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/pybb/forum.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:
6
6
{% load custom_date %}
7
7
{% load pagination_tags %}
8
8
 
9
 
{% block title %}
10
 
{{ forum.name }} - {{ block.super }}
11
 
{% endblock %}
12
 
 
13
9
{% block extra_head %}
14
10
<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ forum.name }}'" href="{% url 'pybb_feed_posts' %}{{forum.id}}/"  />
15
11
<link rel="alternate" type="application/atom+xml" title="Latest Topics on forum '{{ forum.name }}'" href="{% url 'pybb_feed_topics' %}{{forum.id}}/" />
16
12
{{ block.super }}
17
13
{% endblock %}
18
14
 
19
 
{% block content %}
20
 
<h1>Forum: {{ forum }}</h1>
 
15
{% block title %}
 
16
{{ forum.name }} - {{ block.super }}
 
17
{% endblock %}
 
18
 
 
19
{% block content_header %}
 
20
        <h1>Forum: {{ forum }}</h1>
 
21
{% endblock %}
 
22
 
 
23
{% block content_tabbing %}
 
24
        <ul class="tab-list small">
 
25
                <li>
 
26
                <a href="{% url 'pybb_add_topic' forum.id %}">New Topic</a>
 
27
                </li>
 
28
        </ul>
 
29
{% endblock %}
 
30
{% block content_main %}
21
31
 
22
32
<div class="blogEntry">
23
33
        <div class="breadCrumb">
25
35
        {% pybb_link forum.category %} &#187; 
26
36
        {{ forum }}
27
37
        </div>
28
 
        <a class="button posRight" href="{% url 'pybb_add_topic' forum.id %}">
29
 
                <img src="{{ MEDIA_URL }}forum/img/new_topic.png" alt ="{% trans "New Topic" %}" class="middle" />
30
 
                <span class="middle">{% trans "New Topic" %}</span>
31
 
        </a>
 
38
 
32
39
        {% autopaginate topics page_size as object_list %}
33
40
        {% paginate using "pagination/pagination_mod.html" %}
34
41