Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This page dynamically reads currently connected IRC usernames from /var/tmp/irc_userlist which is filled by the IRC bot.
- Loading branch information
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "pages/richtextpage.html" %} | ||
|
||
{% load geany_tags %} | ||
|
||
{% block content_after %} | ||
|
||
{% get_irc_userlist as irc_userlist %} | ||
|
||
<h2>Users</h2> | ||
|
||
<p>Currently {{ irc_userlist|length }} users are connected:</p> | ||
|
||
<div class="row"> | ||
{% for username in irc_userlist %} | ||
<div class="span2">{{ username }}</div> | ||
|
||
{% if forloop.counter|divisibleby:4 %} | ||
</div> | ||
<div class="row"> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters