~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wiki/view.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:
12
12
{{ block.super}}
13
13
{% endblock %}
14
14
 
15
 
{% block content %}
16
 
<div class="posRight small">
17
 
        {% if article.id %}
18
 
                <a class="invertedColor" href="{% url 'wiki_edit' article.title %}">{% trans "Edit this article" %}</a>
19
 
                |
20
 
                <a class="invertedColor" href="{% url 'wiki_article_history' article.title %}">{% trans "Editing history" %}</a>
21
 
                |
22
 
                <a class="invertedColor" href="{% url 'backlinks' article.title %}">{% trans "Backlinks" %}</a>
23
 
                {% if can_observe %}
24
 
                        | 
25
 
                        {% if is_observing %} 
26
 
                        <a class="invertedColor" href="{% url 'wiki_stop_observing' article.title %}">{% trans "Stop observing" %}</a>
27
 
                        {% else %}
28
 
                        <a class="invertedColor" href="{% url 'wiki_observe' article.title %}">{% trans "Observe" %}</a>
29
 
                        {% endif %}
30
 
                {% endif %}
31
 
        {% endif %}
32
 
</div>
33
 
<h1>{{ article.title }}</h1>
34
 
 
 
15
{% block content_header %}
 
16
        <h1>{{ article.title }}</h1>
 
17
{% endblock %}
 
18
 
 
19
{# add the wanted classes to the tabs #}
 
20
{% block class_wiki_back %}class="hidden"{% endblock %}
 
21
{% block class_wiki_hist_atom %}class="hidden"{% endblock %}
 
22
 
 
23
{% block content_main %}
35
24
        {% if messages %}
36
25
            {% for message in messages %}
37
26
            <p class="errormessage">{{ message }}</p>
38
27
            {% endfor %}
39
28
        {% endif %}
40
 
 
41
29
<div class="blogEntry">
42
30
        {% if not article.id %}
43
31
                <p>