~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlhelp/building_details.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:
7
7
{{ building.displayname }} - {{ tribe.displayname }} - {{ block.super }}
8
8
{% endblock %}
9
9
 
10
 
{% block content %}
11
 
<h1>{{ tribe.displayname }}: {{ building.displayname }}</h1>
 
10
{% block content_header %}
 
11
    <h1>{{ tribe.displayname }}: {{ building.displayname }}</h1>
 
12
{% endblock %}
 
13
{% block content_main %}
12
14
<div class="blogEntry">
13
 
        <a href="{% url 'wlhelp_index' %}">Encyclopedia Index</a> &#187;
14
 
        <a href="{% url 'wlhelp_buildings' tribe.name %}">{{ tribe.displayname }} Buildings</a> &#187;
15
 
        {{ building.displayname }}
16
 
        <br /><br />
17
 
 
18
 
        <h2>Description</h2>
19
 
        <p>{{ building.help }}</p>
20
 
 
21
 
        <h2>Economy Graph</h2>
22
 
        {{ building.imagemap|safe }}
23
 
        <img src="{{ building.graph_url }}" usemap="#G" alt="Graph for {{ building.displayname }}" />
 
15
    <a href="{% url 'wlhelp_index' %}">Encyclopedia Index</a> &#187;
 
16
    <a href="{% url 'wlhelp_buildings' tribe.name %}">{{ tribe.displayname }} Buildings</a> &#187;
 
17
    {{ building.displayname }}
 
18
    <br /><br />
 
19
 
 
20
    <h2>Description</h2>
 
21
    <p>{{ building.help }}</p>
 
22
 
 
23
    <h2>Economy Graph</h2>
 
24
    {{ building.imagemap|safe }}
 
25
    <img src="{{ building.graph_url }}" usemap="#G" alt="Graph for {{ building.displayname }}" />
24
26
 
25
27
{% comment %}
26
28
 
27
29
{% if building.get_build_cost %}
28
 
        <h2>Build Cost<h2>
29
 
        {% for costs in building.get_build_cost %}
30
 
                {% for w in costs %}
31
 
                <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
32
 
                {% endfor %}
33
 
        <br />
34
 
        {% endfor %}
 
30
    <h2>Build Cost<h2>
 
31
    {% for costs in building.get_build_cost %}
 
32
        {% for w in costs %}
 
33
        <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
 
34
        {% endfor %}
 
35
    <br />
 
36
    {% endfor %}
35
37
{% endif %}
36
38
 
37
39
{% if building.produces or building.trains %}
38
 
        <h2>Produces</h2>
39
 
        {% if building.produces and not building.trains %}
40
 
                {% for w in building.get_ware_outputs %}
41
 
                <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
42
 
                {% endfor %}
43
 
        {% else %}
44
 
                {% for wor in building.get_worker_outputs %}
45
 
                <img src="{{ wor.image_url }}" alt="{{ wor.name }}" />
46
 
                {% endfor %}
47
 
        {% endif %}
 
40
    <h2>Produces</h2>
 
41
    {% if building.produces and not building.trains %}
 
42
        {% for w in building.get_ware_outputs %}
 
43
        <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
 
44
        {% endfor %}
 
45
    {% else %}
 
46
        {% for wor in building.get_worker_outputs %}
 
47
        <img src="{{ wor.image_url }}" alt="{{ wor.name }}" />
 
48
        {% endfor %}
 
49
    {% endif %}
48
50
{% endif %}
49
51
 
50
52
{% if building.get_stored_wares %}
51
 
        <h2>Stores</h2>
52
 
        {% for costs in building.get_stored_wares %}
53
 
                {% for w in costs %}
54
 
                <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
55
 
                {% endfor %}
56
 
        <br />
57
 
        {% endfor %}
 
53
    <h2>Stores</h2>
 
54
    {% for costs in building.get_stored_wares %}
 
55
        {% for w in costs %}
 
56
        <a href="{% url 'wlhelp_ware_details' w.tribe.name w.name %}" title="{{w.displayname}}"><img src="{{ w.image_url }}" alt="{{ w.name }}" /></a>
 
57
        {% endfor %}
 
58
    <br />
 
59
    {% endfor %}
58
60
{% endif %}
59
61
 
60
62
{% endcomment %}