~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/header.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
{% load wlprofile_extras %}
 
2
{% load wl_extras %}
 
3
 
 
4
<div id="logo">
 
5
        <a href="{% url 'mainpage' %}"><img src=
 
6
        "{{ MEDIA_URL }}img/{% wl_logo %}" alt=
 
7
        "Widelands Logo"></a>
 
8
</div>
 
9
<ul class="header_boxes">
 
10
    <li class="small">
 
11
        <a href="{% url 'wlscreens_index' %}" title="Screenshots">Screenshots<br />
 
12
        <img src="{{ MEDIA_URL }}/img/camera.png" alt="Screenshots" />
 
13
        </a>
 
14
    </li>
 
15
        <li class="small">
 
16
                <a href="{% url 'wiki_article' "Download" %}" title="Download">Download<br />
 
17
                <img src="{{ MEDIA_URL }}/img/download.png" alt="Get Widelands" />
 
18
                </a>
 
19
        </li>
 
20
        <li class="small">
 
21
                <a href="{% url 'wlmaps_index' %}" title="Get new maps">Maps<br />
 
22
                <img src="{{ MEDIA_URL }}img/maps.png" alt="Get Free Maps" />
 
23
                </a>
 
24
        </li>
 
25
        <li class="small">
 
26
                <p>Social Media</p>
 
27
                <a href="https://www.facebook.com/WidelandsOfficial" target="_blank">
 
28
                        <img src="{{ MEDIA_URL }}img/socialmedia/facebook.png" alt="Facebook" />
 
29
                </a>
 
30
        </li>
 
31
        <li class="loginBox small">
 
32
        <!-- Login form / User information -->
 
33
                {% if user.is_authenticated %}
 
34
                        <a href="{% url 'profile_view' %}" title="You are logged in as {{ user }}">Your Profile</a>
 
35
                        {% if messages_inbox_count > 0 %}
 
36
                                <a href="{% url 'messages_inbox' %}" title="Number of Private Messages">({{ messages_inbox_count }})</a>
 
37
                        {% endif %}
 
38
                        <br />
 
39
                        <a href="{% url 'scheduling_find' %}?next={{ request.path|iriencode }}" title="Show other users playtimes">Playtimes</a>
 
40
                        <br />
 
41
                        <a href="{% url 'auth_logout' %}?next={{ request.path|iriencode }}">Logout</a>
 
42
                {% else %}
 
43
                        <a href="{% url 'auth_login' %}?next={{ request.path|iriencode }}">Login/Register</a>
 
44
                {% endif %}
 
45
        </li>
 
46
</ul>