~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wiki/base.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:
1
1
{% extends "base.html" %}
 
2
{% load i18n %}
2
3
 
3
4
{% block title %}
4
5
Wiki - {{ block.super }}
10
11
<link rel="alternate" type="application/atom+xml" title="Wiki History (Atom)" href="{% url 'wiki_history_feed_atom' %}" />
11
12
<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/wiki.css" />
12
13
{% endblock %}
 
14
 
 
15
{# Define all(!) tabs for the wiki here (all in one place).
 
16
We disable or change them in the subpages. #}
 
17
 
 
18
{% block content_tabbing %}
 
19
<ul class="small tab-list">
 
20
        {% if article.id %}
 
21
                <li>
 
22
                        <a {% block class_wiki_edit %}{% endblock %} href="{% url 'wiki_edit' article.title %}">{% trans "Edit this article" %}</a>
 
23
                </li>
 
24
                <li>
 
25
                        <a {% block class_wiki_back %}{% endblock %}href="{% url 'wiki_article' article.title %}">{% trans "Back to article" %}</a>
 
26
                </li>
 
27
                <li>
 
28
                        <a {% block class_wiki_hist %}{% endblock %} href="{% url 'wiki_article_history' article.title %}">{% trans "History" %}</a>
 
29
                </li>
 
30
                <li>
 
31
                        <a {% block class_wiki_backl %}{% endblock %} href="{% url 'backlinks' article.title %}">{% trans "Backlinks" %}</a>
 
32
                </li>
 
33
                <li>
 
34
                        <a {% block class_wiki_hist_atom %}{% endblock %} href="{% url 'wiki_article_history_feed_atom' article.title %}">{% trans "Atom feed" %}</a>
 
35
                </li>
 
36
 
 
37
                {% if can_observe %}
 
38
                <li>
 
39
                        {% if is_observing %} 
 
40
                        <a {% block class_wiki_stop_obs %}{% endblock %}href="{% url 'wiki_stop_observing' article.title %}">{% trans "Stop observing" %}</a>
 
41
                        {% else %}
 
42
                        <a {% block class_wiki_obs %}{% endblock %}href="{% url 'wiki_observe' article.title %}">{% trans "Observe" %}</a>
 
43
                        {% endif %}
 
44
                </li>
 
45
                {% endif %}
 
46
        {% endif %}
 
47
</ul>
 
48
{% endblock %}
 
 
b'\\ No newline at end of file'