~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/header.html

  • Committer: franku
  • Date: 2018-11-30 08:18:02 UTC
  • mfrom: (508.1.14 django_staticfiles)
  • Revision ID: somal@arcor.de-20181130081802-jzhr0xj81fjg1u66
Implement django's default behavior for static files (css, js, images)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% load wlprofile_extras %}
2
2
{% load wl_extras %}
 
3
{% load static %}
3
4
 
4
5
<div id="logo">
5
6
        <a href="{% url 'mainpage' %}"><img src=
6
 
        "{{ MEDIA_URL }}img/{% wl_logo %}" alt=
 
7
        "{% static 'img/'%}{% wl_logo %}" alt=
7
8
        "Widelands Logo"></a>
8
9
</div>
9
10
<ul class="header_boxes">
10
11
    <li class="small">
11
12
        <a href="{% url 'wlscreens_index' %}" title="Screenshots">Screenshots<br />
12
 
        <img src="{{ MEDIA_URL }}/img/camera.png" alt="Screenshots" />
 
13
        <img src="{% static '/img/camera.png' %}" alt="Screenshots" />
13
14
        </a>
14
15
    </li>
15
16
        <li class="small">
16
17
                <a href="{% url 'wiki_article' "Download" %}" title="Download">Download<br />
17
 
                <img src="{{ MEDIA_URL }}/img/download.png" alt="Get Widelands" />
 
18
                <img src="{% static '/img/download.png' %}" alt="Get Widelands" />
18
19
                </a>
19
20
        </li>
20
21
        <li class="small">
21
22
                <a href="{% url 'wlmaps_index' %}" title="Get new maps">Maps<br />
22
 
                <img src="{{ MEDIA_URL }}img/maps.png" alt="Get Free Maps" />
 
23
                <img src="{% static 'img/maps.png' %}" alt="Get Free Maps" />
23
24
                </a>
24
25
        </li>
25
26
        <li class="small">
26
27
                <p>Social Media</p>
27
28
                <a href="https://www.facebook.com/WidelandsOfficial" target="_blank">
28
 
                        <img src="{{ MEDIA_URL }}img/socialmedia/facebook.png" alt="Facebook" />
 
29
                        <img src="{% static 'img/socialmedia/facebook.png' %}" alt="Facebook" />
29
30
                </a>
30
31
        </li>
31
32
        <li class="loginBox small">