~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlhelp/wares.html

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

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
 
{{ tribe.displayname }} - Wares - {{ block.super }}
8
 
{% endblock %}
9
 
 
10
 
{% block content_header %}
11
 
        <h1>{{ tribe.displayname }}: Wares</h1>
12
 
{% endblock %}
13
 
 
14
 
{% block content_main %}
15
 
<div class="blogEntry">
16
 
        <div class="posRight">
17
 
                {% include 'wlhelp/inlines/js_form_scripting.html' %}
18
 
        </div>
19
 
        <div class="breadCrumb">
20
 
                <a href="{% url 'wlhelp_index' %}">Encyclopedia Index</a> &#187; {{ tribe.displayname }} Wares
21
 
        </div>
22
 
 
23
 
        <table class="help">
24
 
                <tr>
25
 
                        <th style="width: 8em;">Ware</th>
26
 
                        <th>Description</th>
27
 
                        <th style="width: 16em;">Produced at/by</th>
28
 
                </tr>
29
 
        {% for w in wares %}
30
 
                <tr class="{% cycle "odd" "even" %}" id="{{ w.name }}">
31
 
                        <td>
32
 
                                <a id="{{ w.name }}" href="{% url 'wlhelp_ware_details' tribe.name w.name %}" title="Show economy graph">
33
 
                                        {{ w.displayname }}
34
 
                                        <br />
35
 
                                        <img src="{{ w.image_url }}"  alt="{{ w.name }}" />
36
 
                                </a>
37
 
                        </td>
38
 
                        <td>
39
 
                                {{ w.help }}
40
 
                                <div class="small scripting">Internal name: "{{ w.name }}"</div>
41
 
                        </td>
42
 
                        <td>
43
 
                                <table class="help small">
44
 
                                        <tr>
45
 
                                                <th>At:</th>
46
 
                                                <th>By:</th>
47
 
                                        </tr>
48
 
                                        {% for building in w.produced_by_buildings.all %}
49
 
                                        <tr>
50
 
                                                <td>
51
 
                                                        <a href="../buildings/#{{ building.name }}">{{ building.displayname }}<br />
52
 
                                                                <img src="{{ building.image_url }}"  alt="{{ building.displayname }}" />
53
 
                                                        </a>
54
 
                                                </td>
55
 
                                                <td>
56
 
                                                        {% for worker in building.workers_types.all %}
57
 
                                                                <a href="../workers/#{{ worker.name }}">{{ worker.displayname }}<br />
58
 
                                                                        <img src="{{ worker.image_url }}"  alt="{{ worker.displayname }}" />
59
 
                                                                </a><br />
60
 
                                                        {% endfor %}
61
 
                                                </td>
62
 
                                        </tr>
63
 
                                        {% endfor %}
64
 
                                </table>
65
 
                </tr>
66
 
        {% endfor %}
67
 
        </table>
68
 
</div>
69
 
{% endblock %}