~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/right_boxes.html

  • Committer: Holger Rapp
  • Date: 2010-09-26 13:30:30 UTC
  • Revision ID: sirver@gmx.de-20100926133030-ceirjf83vde91tyt
Added a simple events model to display dates on the homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
{% endcomment %}
8
8
{% load inbox %}
9
9
{% load i18n %}
10
 
{% load wlprofile wlpoll %}
 
10
{% load wlprofile wlpoll wlevents %}
11
11
 
12
12
      <!-- Search Box -->
13
13
      <h3 class="box_title">Search</h3>
101
101
         </div>
102
102
         {%endif %}
103
103
 
 
104
         <!-- Future Events if any -->
 
105
         {% get_future_events as events %}
 
106
         {% if events.count %}
 
107
         <h3 class="box_title">Important Dates</h3>
 
108
         <div class="box_content" align="center">
 
109
         {% for e in events %}
 
110
            <div class="event">
 
111
               <a href="{{e.link}}" class="link">{{e.name}}</a><br>
 
112
               <div class="date">
 
113
               {{e.start_date|date:"d M"}}
 
114
               {% ifnotequal e.start_date e.end_date %}
 
115
                  - {{e.end_date|date:"d M"}}
 
116
               {% endifnotequal %}
 
117
               </div>
 
118
            </div>
 
119
         {% endfor %}
 
120
         </div>
 
121
         {% endif %}
 
122
 
104
123
         <!-- Logged in users -->
105
124
         {%load online_users %}
106
125
         <h3 class="box_title">Currently online</h3>