~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/pybb/topic.html

  • Committer: Holger Rapp
  • Date: 2009-02-26 22:38:49 UTC
  • Revision ID: sirver@kallisto.local-20090226223849-1563ij0uuw0lz0zu
First version of widelands online help

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
{% load pybb_extras %}
3
3
{% load i18n %}
4
4
 
5
 
{% block title %}
6
 
{{ topic.name }} - {{ topic.forum.name }} - {{ block.super }}
7
 
{% endblock title %}
8
 
 
9
 
{% block extra_head %}
10
 
<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ topic.forum.name }}'" href="{% url pybb_feed "posts" %}{{topic.forum.id}}/"  />
11
 
<link rel="alternate" type="application/atom+xml" title="Latest Topics on forum '{{ topic.forum.name }}'" href="{% url pybb_feed "topics"%}{{topic.forum.id}}/" />
12
 
{{ block.super }}
13
 
{% endblock %}
14
 
 
15
5
{% block content %}
16
 
{% include "django_messages/inlines/navigation.html" %}
17
 
<br />
18
 
<br />
19
 
<div class="box_item_model">
20
 
    <span class="title"><a href="/forum/">Forum</a> &rArr; <a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> &rArr; {{ topic }}</span>
21
 
    <br />
22
 
    {% pybb_pagination _('Posts') %}
23
 
    <div class="posts" style="clear:left">
24
 
        <a name="top" id="top"></a>
25
 
        <table cellspacing="1" width="100%">
26
 
            <tr align="center">
27
 
                <th>Author</th>
28
 
                <th width="85%" nowrap="nowrap">Message</th>
29
 
            </tr>
30
 
        </table>
31
 
 
32
 
    {% if first_post %}
33
 
        {% ifnotequal first_post posts.0 %}
34
 
            {% with first_post as post %}
35
 
        <div class="post first_post">
36
 
                {% include "pybb/inlines/post.html" %}
37
 
        </div>
38
 
            {% endwith %}
39
 
        {% endifnotequal %}
40
 
    {% endif %}
41
 
    {% for post in posts %}
42
 
        <div class="post">
43
 
        {% include "pybb/inlines/post.html" %}
44
 
        </div>
45
 
    {% endfor %}
46
 
    </div>
47
 
    {% pybb_pagination _('Posts') %}
48
 
    <br />
49
 
    <div class="controls">
50
 
        <br />
 
6
 
 
7
{% pybb_pagination _('Posts') %}
 
8
 
 
9
<div class="posts">
 
10
 
 
11
   <table cellspacing="1" width="100%">
 
12
     <tr align="center">
 
13
        <th         >Author</td>
 
14
        <th width="85%" nowrap="nowrap">Message</td>
 
15
     </tr>
 
16
   </table>
 
17
 
 
18
   {% if first_post %}
 
19
      {% ifnotequal first_post posts.0 %}
 
20
         {% with first_post as post %}
 
21
         <div class="first_post">
 
22
            {% include "pybb/inlines/post.html" %}
 
23
         </div>
 
24
         {% endwith %}
 
25
      {% endifnotequal %}
 
26
   {% endif %}
 
27
   {% for post in posts %}
 
28
   <div class="post">
 
29
      {% include "pybb/inlines/post.html" %}
 
30
   </div>
 
31
   {% endfor %}
 
32
</div>
 
33
 
 
34
{% pybb_pagination _('Posts') %}
 
35
<div class="controls">
51
36
    {% if moderator %}
52
 
        {% if topic.sticky %}
53
 
    <a href="{% url pybb_unstick_topic topic.id %}">
54
 
        <img src="{{MEDIA_URL}}/forum/img/en/unstick_topic.png" height="25" alr="{% trans "Unstick topic" %}" />
55
 
    </a>
56
 
        {% else %}
57
 
    <a href="{% url pybb_stick_topic topic.id %}">
58
 
        <img src="{{MEDIA_URL}}/forum/img/en/stick_topic.png" height="25" alt ="{% trans "Stick Topic" %}" />
59
 
    </a>
60
 
        {% endif %}
61
 
        {% if topic.closed %}
62
 
    <a href="{% url pybb_open_topic topic.id %}">
63
 
        <img src="{{MEDIA_URL}}/forum/img/en/open_topic.png" height="25" alt="{% trans "Open topic" %}" />
64
 
    </a>
65
 
        {% else %}
66
 
    <a href="{% url pybb_close_topic topic.id %}">
67
 
        <img src="{{MEDIA_URL}}/forum/img/en/close_topic.png" height="25" alt ="{% trans "Close Topic" %}" />
68
 
    </a>
69
 
        {% endif %}
70
 
    {% endif %}
71
 
 
72
 
 
 
37
    {% if topic.sticky %}
 
38
    <a href="{% url pybb_unstick_topic topic.id %}">{% trans "Unstick topic" %}</a>
 
39
    {% else %}
 
40
    <a href="{% url pybb_stick_topic topic.id %}">{% trans "Stick topic" %}</a>
 
41
    {% endif %}
 
42
    |
 
43
    {% if topic.closed %}
 
44
    <a href="{% url pybb_open_topic topic.id %}">{% trans "Open topic" %}</a>
 
45
    {% else %}
 
46
    <a href="{% url pybb_close_topic topic.id %}">{% trans "Close topic" %}</a>
 
47
    {% endif %}
 
48
    |
 
49
    {% endif %}
 
50
    {% comment %}
 
51
    TODO: subscribe
73
52
    {% if user.is_authenticated %}
74
 
        {% if subscribed %}
75
 
    <a href="{% url pybb_delete_subscription topic.id %}?from_topic">
76
 
        <img src="{{MEDIA_URL}}/forum/img/en/unsubscribe.png" height="25" alt ="{% trans "Unsubscribe" %}" />
77
 
    </a>
78
 
        {% else %}
79
 
    <a href="{% url pybb_add_subscription topic.id %}">
80
 
        <img src="{{MEDIA_URL}}/forum/img/en/subscribe.png" height="25" alt="{% trans "Subscribe" %}" /></a>
81
 
        {% endif %}
82
 
    {% endif %}
 
53
    {% if subscribed %}
 
54
    <a href="{% url pybb_delete_subscription topic.id %}?from_topic">{% trans "Unsubscribe" %}</a>
 
55
    {% else %}
 
56
    <a href="{% url pybb_add_subscription topic.id %}">{% trans "Subscribe" %}</a>
 
57
    {% endif %}
 
58
    {% endif %}
 
59
    {% endcomment %}
 
60
</div>
83
61
 
84
 
    </div>
85
 
</div>
86
62
{% if user.is_authenticated %}
87
 
    {% if not topic.closed %}
88
 
<br />
89
 
<br />
90
 
<div class="box_item_model border">
91
 
    {% include "pybb/inlines/add_post_form.html" %}
92
 
</div>
93
 
    {% endif %}
 
63
{% if not topic.closed %}
 
64
{% include "pybb/add_post_form.html" %}
 
65
{% endif %}
94
66
{% endif %}
95
67
 
96
68
{% endblock %}