~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/pybb/forum.html

  • Committer: Holger Rapp
  • Date: 2016-08-08 10:06:42 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: sirver@gmx.de-20160808100642-z62vwqitxoyl5fh4
Added the apt-get update script I run every 30 days.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
{% load humanize %}
5
5
{% load wlprofile_extras %}
6
6
{% load custom_date %}
7
 
{% load pagination_tags %}
8
 
{% load static %}
 
7
 
 
8
{% block title %}
 
9
{{ forum.name }} - {{ block.super }}
 
10
{% endblock %}
9
11
 
10
12
{% block extra_head %}
11
13
<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ forum.name }}'" href="{% url 'pybb_feed_posts' %}{{forum.id}}/"  />
13
15
{{ block.super }}
14
16
{% endblock %}
15
17
 
16
 
{% block title %}
17
 
{{ forum.name }} - {{ block.super }}
18
 
{% endblock %}
19
 
 
20
 
{% block content_header %}
21
 
        <h1>Forum: {{ forum }}</h1>
22
 
{% endblock %}
23
 
 
24
 
{% block content_tabbing %}
25
 
        <ul class="tab-list small">
26
 
                <li>
27
 
                <a href="{% url 'pybb_add_topic' forum.id %}">New Topic</a>
28
 
                </li>
29
 
        </ul>
30
 
{% endblock %}
31
 
{% block content_main %}
 
18
{% block content %}
 
19
<h1>Forum: {{ forum }}</h1>
32
20
 
33
21
<div class="blogEntry">
34
 
        <div class="breadCrumb">
35
22
        <a href="{% url 'pybb_index' %}">Forums</a> &#187; 
36
23
        {% pybb_link forum.category %} &#187; 
37
24
        {{ forum }}
38
 
        </div>
39
 
 
40
 
        {% autopaginate topics page_size as object_list %}
41
 
        {% paginate using "pagination/pagination_mod.html" %}
 
25
        <br /><br />
 
26
        <a class="button posRight" href="{% url 'pybb_add_topic' forum.id %}">
 
27
                <img src="{{ MEDIA_URL }}forum/img/new_topic.png" alt ="{% trans "New Topic" %}" class="middle" />
 
28
                <span class="middle">{% trans "New Topic" %}</span>
 
29
        </a>
 
30
        {% pybb_pagination _('Topics') %}
 
31
        <br /><br />
42
32
 
43
33
        <table class="forum">
44
34
                <thead>
50
40
                        </tr>
51
41
                </thead>
52
42
                <tbody>
53
 
                {% for topic in object_list %}
 
43
        {% for topic in topics %}
54
44
                <tr class="{% cycle 'odd' 'even' %}">
55
 
                        {% if not topic.is_hidden %}
56
45
                        <td class="forumIcon center">
57
46
                                {% if topic|pybb_has_unreads:user %}
58
 
                                <img src="{% static 'forum/img/doc_big_work_star.png' %}" style="margin: 0px;" alt="" class="middle" />
 
47
                                <img src="{{ MEDIA_URL }}forum/img/doc_big_work_star.png" style="margin: 0px;" alt="" class="middle" />
59
48
                                {% else %}
60
 
                                <img src="{% static 'forum/img/doc_big_work.png' %}" style="margin: 0px;" alt="" class="middle" />
 
49
                                <img src="{{ MEDIA_URL }}forum/img/doc_big_work.png" style="margin: 0px;" alt="" class="middle" />
61
50
                                {% endif %}
62
51
                        </td>
63
52
                        <td class="forumTitle">
64
 
                                {% if topic.sticky %}<img src="{% static 'forum/img/sticky.png' %}" alt="Sticky" title="Sticky" />{% endif %}
65
 
                                {% if topic.closed %}<img src="{% static 'forum/img/closed.png' %}" alt="Closed" title="Closed" />{% endif %}
 
53
                                {% if topic.sticky %}<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt="Sticky" title="Sticky" />{% endif %}
 
54
                                {% if topic.closed %}<img src="{{ MEDIA_URL }}forum/img/closed.png" alt="Closed" title="Closed" />{% endif %}
66
55
                                <a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a><br />
67
56
                                <span class="small">Created by {{ topic.user|user_link }} on {{ topic.created|custom_date:user }}</span>
68
57
                        </td>
76
65
                                <span class="small">on {{ topic.last_post.created|custom_date:user }}</span>
77
66
                                {% endif %}
78
67
                        </td>
79
 
                        {% elif moderator %}
80
 
                                <td colspan="4" class="center errormessage">Hidden Topic: <a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></td>
81
 
                        {% endif %}
82
68
                </tr>
83
 
                {% endfor %}
 
69
        {% endfor %}
84
70
                </tbody>
85
71
        </table>
 
72
 
 
73
        <br />
86
74
        <a class="button posRight" href="{% url 'pybb_add_topic' forum.id %}">
87
 
                <img src="{% static 'forum/img/new_topic.png' %}" alt ="{% trans "New Topic" %}" class="middle" />
 
75
                <img src="{{ MEDIA_URL }}forum/img/new_topic.png" alt ="{% trans "New Topic" %}" class="middle" />
88
76
                <span class="middle">{% trans "New Topic" %}</span>
89
77
        </a>
90
 
        {% paginate %}
 
78
        {% pybb_pagination _('Topics') %}
 
79
        <br />
91
80
</div>
92
81
 
93
82
<div class="center green">
94
 
        <img src="{% static 'forum/img/doc_big_work_star.png' %}" alt="" class="middle" />
 
83
        <img src="{{ MEDIA_URL }}forum/img/doc_big_work_star.png" alt="" class="middle" />
95
84
        = Unread posts
96
 
        <img src="{% static 'forum/img/doc_big_work.png' %}" alt="" class="middle" /> 
 
85
        <img src="{{ MEDIA_URL }}forum/img/doc_big_work.png" alt="" class="middle" /> 
97
86
        = No unread posts
98
87
</div>
99
88
{% endblock %}