~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/left_boxes.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:
3
3
 
4
4
 This file is included by mainpage and contains all the left menu boxes
5
5
 on the site
 
6
 
6
7
{% endcomment %}
7
 
 
8
 
{% load inbox %}
9
 
{% load i18n %}
10
 
{% load wlprofile_extras wlpoll_extras wlevents_extras %}
11
 
{% load pybb_extras %}
12
 
 
13
 
 
14
 
<!-- Current polls if any -->
15
 
{% get_open_polls as polls %}
16
 
{% if polls %}
17
 
<div class="columnModule">
18
 
        <h3>Polls</h3>
19
 
        <div class="columnModuleBox">
20
 
        {% for p in polls %}
21
 
                <h4>{{p.name}}</h4>
22
 
                {% if not user.is_anonymous %}
23
 
                        {% if p.user_has_voted %}
24
 
                                <p class="small">You already voted on this!</p>
25
 
                                <div class="center">
26
 
                                        <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
27
 
                                </div>
28
 
                        {% else %}
29
 
                                <form method="post" action="{% url 'wlpoll_vote' p.id %}">
30
 
                                        <ul class="poll">
31
 
                                        {% for c in p.choices.all %}
32
 
                                                <li><input id="{{ c.id }}" class="radio" type="radio" name="choice_id" value="{{ c.id }}" /><label for="{{ c.id }}">{{ c.choice }}</label></li>
33
 
                                        {% endfor %}
34
 
                                        </ul>
35
 
                                        <div class="center">
36
 
                                                <input type="submit" value="Vote" />
37
 
                                                <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
38
 
                                        </div>
39
 
                                        {% csrf_token %}
40
 
                                </form>
41
 
                        {% endif %}
42
 
                {% else %}
43
 
                        <p class="small"><a href="{% url 'auth_login' %}?next={{ request.path|iriencode }}">Log in</a> to vote!</p>
44
 
                        <div class="center">
45
 
                                <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
46
 
                        </div>
47
 
                {% endif %}
48
 
        {% endfor %}
49
 
                <div class="center">
50
 
                        <p><a href="{% url 'wlpoll_archive' %}">Archive</a></p>
51
 
                </div>
52
 
        </div>
53
 
</div>
54
 
{% endif %}
55
 
 
56
 
<!-- Future Events if any -->
57
 
{% get_future_events as events %}
58
 
{% if events.count %}         
59
 
<div class="columnModule">
60
 
        <h3>Important Dates</h3>
61
 
        <div class="columnModuleBox">
62
 
                <ul>
63
 
                        {% for e in events %}
64
 
                                <li>
65
 
                                {{e.start_date|date:"d M"}}
66
 
                                {% ifnotequal e.start_date e.end_date %}
67
 
                                         - {{e.end_date|date:"d M"}}
68
 
                                {% endifnotequal %}
69
 
                                - <a href="{{e.link}}">{{e.name}}</a></li>
70
 
                        {% endfor %}
71
 
                </ul>
72
 
        </div>
73
 
</div>
74
 
{% endif %}
75
 
 
76
 
 
77
 
<!-- Logged in users -->
78
 
{% if request.online_now %}
79
 
<div class="columnModule">
80
 
        <h3>Currently Online</h3>
81
 
        <div class="columnModuleBox">
82
 
                <ul class="player">
83
 
                        {% for user in request.online_now|slice:":10" %}
84
 
                        <li><a href="{% url 'profile_view' user %}">{{ user.username }}</a></li>
85
 
                        {% endfor %}
86
 
                </ul>
87
 
        </div>
88
 
</div>
89
 
{% endif %}
90
 
 
91
 
<!-- Latest Post -->
92
 
{% pybb_last_posts %}
 
8
{% load wlblock %}
 
9
    
 
10
    <td id="leftcolumn">
 
11
      {% wlblock "Donations" %}
 
12
      <div align="center">
 
13
         Help us to pay our Server!<br/>(: Consider a donation :) <br/>
 
14
            <img src="http://images.sourceforge.net/images/project-support.jpg"
 
15
            align="center" alt="Donation pic" border="0" vspace=5 />
 
16
         </a>
 
17
         <br/>
 
18
         <a href="http://sourceforge.net/project/project_donations.php?group_id=40163">Donators</a>
 
19
      </div>
 
20
      {% endwlblock %}
 
21
 
 
22
      {% wlblock "Main Menu" %}
 
23
      <table cellspacing="0">
 
24
         <tr>
 
25
            <td id="mainmenu">
 
26
               <a class="menuTop" href="/">Home</a>
 
27
               <a class="menuMain" href="{% url news_index %}">News</a>
 
28
               {% comment %}
 
29
               <a class="menuMain" href="http://xoops.widelands.org/modules/wfdownloads/">Downloads</a>
 
30
               <a class="menuSub" href="http://xoops.widelands.org/modules/wfdownloads/topten.php?list=hit">Popular</a>
 
31
               <a class="menuSub" href="http://xoops.widelands.org/modules/wfdownloads/topten.php?list=rate">Top Rated</a>
 
32
               <a class="menuMain" href="http://xoops.widelands.org/modules/smartfaq/">FAQ</a>
 
33
               <a class="menuMain" href="http://xoops.widelands.org/modules/xcgal/">Screenshots</a>
 
34
               {% endcomment %}
 
35
               <a class="menuMain" href="{% url wiki_index %}">Wiki (Help & Docu.)</a>
 
36
               {% comment %}
 
37
               <a class="menuMain" href="http://xoops.widelands.org/modules/newbb/">Forum</a>
 
38
               <a class="menuMain" href="http://xoops.widelands.org/modules/xpjirc/">IRC Chat</a>
 
39
               <a class="menuMain" href="http://xoops.widelands.org/modules/Contentview/">SVN-View</a>
 
40
               <a class="menuMain" href="http://xoops.widelands.org/modules/Tracker/">Bug-Tracker & Feature Requests</a>
 
41
               <a class="menuMain" href="http://xoops.widelands.org/modules/poll/">Polls</a>
 
42
               {% endcomment %}
 
43
            </td>
 
44
         </tr>
 
45
      </table>
 
46
      {% endwlblock %}
 
47
   </td>
 
48
 
 
49
{% comment %}
 
50
<div class="blockTitle">Main Menu</div>
 
51
      <div class="blockContent"><table cellspacing="0">
 
52
  <tr>
 
53
    <td id="mainmenu">
 
54
      <a class="menuTop" href="http://xoops.widelands.org/">Home</a>
 
55
      <!-- start module menu loop -->
 
56
            <a class="menuMain" href="http://xoops.widelands.org/modules/news/">News</a>
 
57
                    <a class="menuMain" href="http://xoops.widelands.org/modules/wfdownloads/">Downloads</a>
 
58
                    <a class="menuMain" href="http://xoops.widelands.org/modules/smartfaq/">FAQ</a>
 
59
                    <a class="menuMain" href="http://xoops.widelands.org/modules/xcgal/">Screenshots</a>
 
60
                    <a class="menuMain" href="http://xoops.widelands.org/modules/mediawiki/">Wiki (Help & Docu.)</a>
 
61
                    <a class="menuMain" href="http://xoops.widelands.org/modules/newbb/">Forum</a>
 
62
                    <a class="menuMain" href="http://xoops.widelands.org/modules/xpjirc/">IRC Chat</a>
 
63
                    <a class="menuMain" href="http://xoops.widelands.org/modules/Contentview/">SVN-View</a>
 
64
                    <a class="menuMain" href="http://xoops.widelands.org/modules/Tracker/">Bug-Tracker & Feature Requests</a>
 
65
                    <a class="menuMain" href="http://xoops.widelands.org/modules/poll/">Polls</a>
 
66
                    <!-- end module menu loop -->
 
67
    </td>
 
68
  </tr>
 
69
</table></div>
 
70
          <img src="/wlmedia/img/spacer.gif" width="170" height="1" alt="" />
 
71
    </td>
 
72
   {% endcomment %}