~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/right_boxes.html

  • Committer: franku
  • Date: 2018-04-26 20:18:55 UTC
  • mfrom: (489.1.28 widelands)
  • Revision ID: somal@arcor.de-20180426201855-uwt3b8gptpav6wrm
updated code base to fit with django 1.11.12; replaced app tracking with a new middleware

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
{% load i18n %}
11
11
{% load wlprofile_extras wlpoll_extras wlevents_extras %}
12
12
{% load pybb_extras %}
13
 
{% load online_users %}
14
13
 
15
14
<!-- Donation Box -->
16
15
<div class="columnModule">
109
108
 
110
109
 
111
110
<!-- Logged in users -->
112
 
{% online_users 10 %}
 
111
{% if request.online_now %}
 
112
<div class="columnModule">
 
113
        <h3>Currently Online</h3>
 
114
        <div class="columnModuleBox">
 
115
                <ul class="player">
 
116
                        {% for user in request.online_now|slice:":10" %}
 
117
                        <li><a href="{% url 'profile_view' user %}">{{ user.username }}</a></li>
 
118
                        {% endfor %}
 
119
                </ul>
 
120
        </div>
 
121
</div>
 
122
{% endif %}
113
123
 
114
124
<!-- Latest Post -->
115
125
{% pybb_last_posts %}