in metrics, give better info on new users

pull/1/head
eric 2013-12-17 00:19:56 -05:00
parent abfbc4101c
commit 84d1410f1c
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{% extends "basedocumentation.html" %}
{% load humanize %}
{% block title %} Metrics {% endblock %}
{% block doccontent %}
@ -9,11 +10,15 @@
<ul class="terms">
<li>{{ users.today.count }} have registered today. {% if users.today.count %}They are
<ul class="terms">{% for user in users.today %}
<li><a href="{% url supporter user.username %}">{{user.username}}</a></li>
<li><a href="{% url supporter user.username %}"> {{user.username}}</a> {% if user.is_active %} ( {{ user.wishlist.works.count }} wishes) {% if user.library %}{{user.library}}{% endif %}{% endif %}</li>
{% endfor %}</ul>{% endif %}
<br />{{ wishlists.today.count }} of them have 1 or more items on a wishlist.
</li>
<li>{{ users.yesterday.count }} registered yesterday.
<li>{{ users.yesterday.count }} registered yesterday.{% if users.today.count %}They are
<ul class="terms">{% for user in users.yesterday %}
<li><a href="{% url supporter user.username %}"> {{user.username}}</a> {% if user.is_active %} ( {{ user.wishlist.works.count }} wishes) {% if user.library %}{{user.library}}{% endif %}{% endif %}</li>
{% endfor %}</ul>{% endif %}
<br />{{ wishlists.yesterday.count }} of them have 1 or more items on a wishlist.
</li>
<li>{{ users.days7.count }} have registered in the past 7 days.
@ -57,6 +62,8 @@
<dt> How often have the works been listed?</dt>
<dd>
<ul class="terms">
<li>{{ works.wishedby100.count }} have been listed by more than 100 ungluers.
</li>
<li>{{ works.wishedby50.count }} have been listed by more than 50 ungluers.
</li>
<li>{{ works.wishedby20.count }} have been listed by more than 20 ungluers.