Mercurial > public > sg101
view gpp/templates/irc/irc_block.html @ 145:71cb4208dc98
Tweak to #30, admin dashboard. Because of a bug in Django (9568), my dashboard appears on the login page. To get around this, pass in the user to the templatetag, so it can do a 'if user.is_staff' check. Also tweaked the HTML and CSS to show non-zero pending items in red. Shortened the pending item titles for readability.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 09 Dec 2009 00:03:10 +0000 |
parents | 81e2449a5932 |
children | 3cf18e6002dd |
line wrap: on
line source
{% extends 'side_block.html' %} {% block block_title %}IRC Status{% endblock %} {% block block_content %} {% if nicks %} <ul> {% for nick in nicks %} <li>{{ nick.name }}</li> {% endfor %} </ul> <p>Join them in the <a href="irc://surfguitar101.com/ShallowEnd,needpass">#ShallowEnd</a>!</p> {% else %} <center> <p><a href="irc://surfguitar101.com/ShallowEnd,needpass">#ShallowEnd</a> is empty.</p> </center> {% endif %} {% endblock %}