~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wiki/index.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
 
{% extends "wiki/base.html" %}
 
1
{% extends 'base.html' %}
2
2
{% load i18n %}
3
 
{% load custom_date wlprofile_extras %}
 
3
 
4
4
 
5
5
{% block title %}Wiki Index - {{ block.super }}{% endblock %}
6
6
 
7
 
{% block content_header %}
8
 
        <h1>Wiki: Index</h1>
9
 
{% endblock %}
 
7
{% block content %}
 
8
        <h1>Wiki Index</h1>
10
9
 
11
 
{% block content_main %}
12
 
<div class="blogEntry">
13
10
        {% if articles %}
14
 
                <p> There are {{ articles|length }} articles in this wiki:</p>
15
 
                <table>
16
 
                <thead>
17
 
                        <tr>
18
 
                                <th>{% trans "Page" %}</th>
19
 
                                <th>{% trans "Summary" %}</th>
20
 
                                <th>{% trans "Last update" %}</th>
21
 
                        </tr>
22
 
                </thead>
23
 
                <tbody>
 
11
                <ul>
24
12
                        {% for article in articles %}
25
 
                        <tr>
26
 
                                <td><a href="{% url 'wiki_article' article.title %}">{{ article.title }}</a></td>
27
 
                                <td>{{ article.summary }}</td>
28
 
                                <td>{{ article.last_update|custom_date:user }}</td>
29
 
                        </tr>
 
13
                                <li><a href="{% url wiki_article article.title %}">{{ article.title }}</a></li>
30
14
                        {% endfor %}
31
 
                </tbody>
32
 
                </table>
 
15
                </ul>
33
16
        {% else %}
34
 
        <p><a href="{% url 'wiki_edit' "NewArticle" %}">{% trans "Create a new article" %}</a>.</p>
 
17
        <p><a href="{% url wiki_edit "NewArticle" %}">{% trans "Create a new article" %}</a>.</p>
35
18
        {% endif %}
36
 
</div>
37
19
{% endblock %}