~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wiki/recentchanges.html

  • Committer: Holger Rapp
  • Date: 2009-02-20 12:25:18 UTC
  • Revision ID: holgerrapp@gmx.net-20090220122518-feaq34ta973snnct
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends 'wiki/base.html' %}
2
 
 
3
 
{% load humanize i18n %}
 
2
{% load i18n %}
4
3
{% load pagination_tags %}
5
 
{% load custom_date %}
6
 
{% load wlprofile_extras %}
7
 
 
8
 
{% block title %}
9
 
{% trans "Recent Changes" %} - {{ block.super }}
10
 
{% endblock %}
11
 
 
12
 
{% block content_header %}
13
 
        <h1>Wiki: {% trans "Recent Changes" %}</h1>
14
 
{% endblock %}
15
 
 
16
 
{% block content_main %}
17
 
<div class="blogEntry">
18
 
{% autopaginate changes as object_list %}
19
 
{% paginate using "pagination/pagination_mod.html" %}
20
 
<br />
21
 
{% for change in object_list %}
22
 
        {% ifchanged change.modified.date %}
23
 
                {% if not forloop.first %}
24
 
                </table>
25
 
                <br />
26
 
                {% endif %}
27
 
                <h3>{{ change.modified|naturalday:_("MONTH_DAY_FORMAT")|title }}</h3>
28
 
                <table class="history_list">
29
 
                        <tr>
30
 
                                <th class="action">{% trans "Action" %}</th>
31
 
                                <th class="article">{% trans "Article" %}</th>
32
 
                                <th class="at">{% trans "At" %}</th>
33
 
                                <th class="user">{% trans "User" %}</th>
34
 
                                <th class="comment">{% trans "Comment" %}</th>
35
 
                        </tr>
36
 
        {% endifchanged %}
37
 
        <tr class="{% cycle 'odd' 'even' %}">
38
 
                <td>
39
 
                        {% if change.old_title %} 
40
 
                                <a href="{% url 'wiki_changeset' change.article.title change.revision %}">Modified</a>
41
 
                        {% else %} 
42
 
                                <a href="{% url 'wiki_article' change.article.title %}">Added</a>
43
 
                        {% endif %}
44
 
                </td>
45
 
                <td>
46
 
                        <a href="{% url 'wiki_article' change.article.title %}">{{ change.article.title }}</a>
47
 
                </td>
48
 
                <td>{{ change.modified|custom_date:user }}</td>
49
 
                <td>{{ change.editor|user_link }}</td>
50
 
                <td>{{ change.comment }}</td>
51
 
        </tr>
 
4
 
 
5
{% block content %}
 
6
<h2>{% trans "Recent Changes" %}</h2>
 
7
{% autopaginate changes %}
 
8
<table>
 
9
{% for change in changes %}
 
10
    {% ifchanged change.modified.date %}
 
11
        <tr>
 
12
            <td colspan="5">{{change.modified|date }}</td>
 
13
        </tr>
 
14
    {% endifchanged %}
 
15
    <tr>
 
16
        <td>
 
17
            {% if change.old_title %} 
 
18
                <a href="{% url wiki_changeset change.article.title,change.revision %}"> M </a>
 
19
            {% else %} 
 
20
                A 
 
21
            {% endif %}
 
22
        </td>
 
23
        <td><a href="{% url wiki_article change.article.title %}">
 
24
            {{ change.article.title }}</a>
 
25
        </td>
 
26
        <td>{{ change.modified|date:"H:i" }}</td>
 
27
        <td>{{ change.editor }}</td>
 
28
        <td>{{ change.comment }}</td>
 
29
    </tr>
52
30
{% endfor %}
53
 
        </table>
54
 
        <br />
 
31
</table>
55
32
{% paginate %}
56
 
</div>
57
33
{% endblock %}