summaryrefslogtreecommitdiffstats
path: root/templates/agenda/user_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/user_page.html')
-rwxr-xr-xtemplates/agenda/user_page.html96
1 files changed, 96 insertions, 0 deletions
diff --git a/templates/agenda/user_page.html b/templates/agenda/user_page.html
new file mode 100755
index 0000000..335baa9
--- /dev/null
+++ b/templates/agenda/user_page.html
@@ -0,0 +1,96 @@
+{% extends 'agenda/base.html' %}
+{% load i18n %}
+{% if name %}{% block content_title %}<h1>{{ name|escape }}</h1>{% endblock %}
+{% endif %}
+{% load calendartable %}
+{% block sidebar %}{{ block.super }}
+{% if missing_pixies.count %}
+<div class="module">
+ <h2>{% trans 'Events that need a pixie' %}:</h2>
+ <ul class="actionlist">
+ {% for event in missing_pixies %}
+ <li><form action="/agenda/{{ event.id }}/adopt/" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" /><a href="/admin/agenda/event/{{ event.id }}/">{{ event.title }}</a>: <span class="mini quiet">{{ event.description }} Groups: {{ event.network.iterator|join:" ," }}</span> {% if user.is_authenticated %}<a href="/admin/agenda/event/{{ event.id }}/" class="changelink">edit</a> <input type="hidden" name="pixie" value="{{ user.id }}" id="id_pixie" /> <input type="submit" name="submit" class="close-post" value="I will do it">{% endif %}
+ </form></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+{% if group_todos.count %}
+<div class="module">
+ <h2>{% trans 'Pending ToDos on your groups' %}:</h2>
+ <ul class="actionlist">
+ {% for todo in group_todos %}
+ <li><form action="todo/{{ todo.id }}/close/" class="collapse" method="POST"> <input type="hidden" name="todo" value="{{ todo.id }}" id="id_todo" /><a href="/admin/agenda/todo/{{ todo.id }}/">{{ todo.title }}</a>: <span class="mini quiet">{{ todo.description }} Groups: {{ todo.network.iterator|join:" ," }}</span> {% if user.is_authenticated %}<a href="/admin/agenda/todo/{{ todo.id }}/" class="changelink">edit</a> <input type="hidden" name="done" value="True" id="id_done" /> <input type="submit" name="submit" class="close-post" value="close">{% endif %}
+ </form></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+<div class="module">
+<h3>{% trans 'Add Todo' %}:</h3>
+<form action="todo/submit/" class="collapse" method="POST">
+<ul class="actionlist">
+{{ newtodo.as_ul }}
+<li><input type="submit" name="submit" class="submit-post" value="Post"></li>
+</ul>
+<input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
+<input type="hidden" name="creator" value="{{ user.id }}" id="id_creator" />
+</form>
+</div>
+{% endblock %}
+{% block content %}
+<div class="module">
+<h2><a href="{{ user.id }}">{{ user.name|upper }}</a></h2>
+ {% if user.event_set.count %}
+ <h2>{% trans 'Your events' %}</h2>
+ <ul class="actionlist">
+ {% for event in user.event_set.all %}
+ <li><a href="/agenda/{{ event.id }}/">{{ event.title }}</a> - {{ event.start_date|date }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </div>
+ {% if user.userflag_set.count %}
+ <div class="module">
+ <h2>{% trans 'User flags' %}:</h2>
+ {% for flag in user.userflag_set.all %}
+ {{ flag.comment }}<br>
+ {% endfor %}</td></div>
+{% endif %}
+
+ {% if user.logentry_set.count %}
+ <div class="module">
+ <h2>{% trans 'Log entries' %}:</h2>
+ <ul class="actionlist">
+ {% for logentry in logentries %} <br>
+ <li>{{ logentry.change_message }} {% trans 'on' %} {{ logentry.get_edited_object }},{% trans 'on the' %} {{ logentry.action_time|date }}</li>
+ {% endfor %}
+ </ul></div>
+ {% endif %}
+ {% if user.messages_set.count %}
+ <div class="module">
+ <h2>{% trans 'Messages' %}:</h2>
+ <ul class="actionlist">
+ {% for logentry in user.messages_set.all %}
+ <li>{{ logentry }}</li>
+ {% endfor %}
+ </ul></div>
+ {% endif %}
+ {% if user.comment_set.count %}<div class="module">
+ <h2>{% trans 'Comments' %}:</h2>
+ <ul class="actionlist">
+ {% for comment in user.comment_set.all %}
+ <li>{{ comment.headline }}</li>
+ {% endfor %}</ul></div>
+ {% endif %}
+</td>
+<td><a href="{{ user.karmascore_set.count }}" class="changelink">karmascore_set.count: {{ user.karmascore_set.count }}</a></td>
+{{ calendartable }}
+</tr>
+
+</table>
+</div>
+{% endblock %}
+{% block info %}
+template: "agenda/event_list.html"
+{% endblock %}