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.html43
1 files changed, 28 insertions, 15 deletions
diff --git a/templates/agenda/user_page.html b/templates/agenda/user_page.html
index f9ac453..a5b490d 100755
--- a/templates/agenda/user_page.html
+++ b/templates/agenda/user_page.html
@@ -1,5 +1,6 @@
{% extends 'agenda/base.html' %}
{% load i18n %}
+{% load comments %}
{% if name %}{% block content_title %}<h1>{{ name|escape }}</h1>{% endblock %}
{% endif %}
{% load calendartable %}
@@ -21,6 +22,31 @@
{% endif %}
{% endblock %}
{% block content %}
+ <h1>{% trans 'Home page of' %}: {{ user.username }}</h1>
+ <div class="module">
+ <h2>{% trans 'User info' %}</h2>
+ <ul class="actionlist">
+ <li>{% trans 'Date Joined' %}: {{ user.date_joined|date }}</li>
+ {% if user.is_staff %}<li>{% trans 'User is staff' %}</li>{% endif %}
+ {% if user.is_superuser %}<li><b>{% trans 'User is superuser' %}</b></li>{% endif %}
+ <li>{% trans 'email' %} {{ user.email }}</li>
+ </ul>
+ </div>
+ <div class="module">
+ <h2>{% trans 'Your groups' %}</h2>
+ <ul>
+ {% for group in user.groups.all %}
+ <li><a href="{% url agenda.views.justonegroup group.id %}">{{ group }}</a><br>
+ Members: {{ group.user_set.count }} - Comments: {% get_comment_count for group as comment_count %}
+ {% get_comment_list for group as comment_list %} {% if comment_list %}{% for comment in comment_list %}
+ {{ comment.comment }} - posted by {{ comment.user_name }} on {{ comment.submit_date|date }}
+
+{% endfor %}
+{% endif %}
+</li>
+ {% endfor %}
+ </ul>
+ </div>
{% if group_todos.count %}
<div class="module">
<h2>{% trans 'Pending ToDos on your groups' %}:</h2>
@@ -32,19 +58,6 @@
</ul>
</div>
{% endif %}
- <div class="module">
-
- <h2>{% trans 'Your groups' %}</h2>
-
- <ul>
- {% for group in user.groups.all %}
- <li><a href="{% url agenda.views.justonegroup group.id %}">{{ group }}</a>
- </li>
- {% endfor %}
- </ul>
-
-
- </div>
<div class="module">
<h2>{% trans 'Your events' %}</h2>
{% if my_mentored_events %}
@@ -55,10 +68,10 @@
{% endfor %}
</ul>
{% endif %}
- {% if user.event_set.count %}
+ {% if attending %}
<h3>{% trans 'Events you are attending' %}</h3>
<ul class="actionlist">
- {% for event in user.event_set.all %}
+ {% for event in attending %}
<li><a href="{% url agenda.views.event event.id %}">{{ event.title }}</a> - {{ event.start_date|date }}</li>
{% endfor %}
</ul>