~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlhelp/building_details.html

  • Committer: Holger Rapp
  • Date: 2009-02-19 15:31:42 UTC
  • Revision ID: sirver@h566336-20090219153142-dc8xuabldnw5t395
Initial commit of new widelands homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "wlhelp/base.html" %}
2
 
{% comment %}
3
 
   vim:ft=htmldjango
4
 
{% endcomment %}
5
 
 
6
 
{% block title %}
7
 
{{ building.displayname }} - {{ tribe.displayname }} - {{ block.super }}
8
 
{% endblock %}
9
 
 
10
 
{% block content_header %}
11
 
    <h1>{{ tribe.displayname }}: {{ building.displayname }}</h1>
12
 
{% endblock %}
13
 
{% block content_main %}
14
 
<div class="blogEntry">
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 }}" />
26
 
 
27
 
{% comment %}
28
 
 
29
 
{% if building.get_build_cost %}
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 %}
37
 
{% endif %}
38
 
 
39
 
{% if building.produces or building.trains %}
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 %}
50
 
{% endif %}
51
 
 
52
 
{% if building.get_stored_wares %}
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 %}
60
 
{% endif %}
61
 
 
62
 
{% endcomment %}
63
 
 
64
 
</div>
65
 
{% endblock %}