~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/wlhelp/wares.html

  • Committer: franku
  • Date: 2016-05-15 14:41:54 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160515144154-00m3tiibyxm0nw2w
added the old threadedcomments app as wildelands app

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "base.html" %}
 
1
{% extends "wlhelp/base.html" %}
2
2
{% comment %}
3
3
   vim:ft=htmldjango
4
4
{% endcomment %}
5
5
 
 
6
{% block title %}
 
7
Wares - {{ tribe.displayname }} - {{ block.super }}
 
8
{% endblock %}
 
9
 
6
10
{% block content %}
 
11
<h1>{{ tribe.displayname }}: Wares</h1>
 
12
<div class="blogEntry">
 
13
        <a href="{% url 'wlhelp_index' %}">Encyclopedia</a> &#187;
 
14
        <a href="{% url 'wlhelp_tribe_details' tribe.name %}">{{ tribe.displayname }}</a> &#187;
 
15
        Wares
 
16
        <br /><br />
7
17
 
8
 
<!-- Wares -->
9
 
<h1>Wares</h1>
10
 
<table class="ware" width="100%" cellspacing="1">
11
 
   <tr>
12
 
      <th width="48px">Image</th>
13
 
      <th width="96px">Name</th>
14
 
      <th             >Description</th>
15
 
   </tr>
16
 
{% for ware in wares %}
17
 
{% include "inlines/display_ware.html" %}
18
 
{% endfor %}
19
 
</table>
 
18
        <table class="help">
 
19
                <tr>
 
20
                        <th>Image</th>
 
21
                        <th>Name</th>
 
22
                        <th>Description</th>
 
23
                </tr>
 
24
        {% for ware in wares %}
 
25
                <tr class="{% cycle "odd" "even" %}">
 
26
                        <td>
 
27
                                <a href="{% url 'wlhelp_ware_details' tribe.name ware.name %}">
 
28
                                        <img src="{{ ware.image_url }}"  alt="{{ ware.name }}" />
 
29
                                </a>
 
30
                        </td>
 
31
                        <td><a id="{{ ware.name }}" href="{% url 'wlhelp_ware_details' tribe.name ware.name %}">{{ ware.displayname }}</a></td>
 
32
                        <td>{{ ware.help }}</td> 
 
33
                </tr>
 
34
        {% endfor %}
 
35
        </table>
 
36
</div>
20
37
{% endblock %}
21