This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
stats.html
108 lines (99 loc) · 2.93 KB
/
stats.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{#
# richard -- video index system
# Copyright (C) 2012 richard contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#}
{% extends "base.html" %}
{% block title %}{{ page_title("Statistics") }}{% endblock %}
{% block content %}
<div class="page-header">
<h1>{{ video_count }} video{{ 's' if video_count != 0 }} indexed</h2>
</div>
<div class="row">
<div class="span4">
<div class="well">
<p class="stats-number">
<strong>{{ category_count }}</strong>
<em>categor{{ 'y' if category_count == 1 else 'ies' }}</em>
</p>
<ul>
{% for cat in category_top5 %}
<li>
<a href="{{ cat.get_absolute_url() }}">{{ cat }}</a>
(<strong>{{ cat.count }} videos</strong>)
</li>
{% endfor %}
</ul>
<a href="{{ url('videos-category-list') }}">All categories</a>
</div>
</div>
<div class="span4">
<div class="well">
<p class="stats-number">
<strong>{{ speaker_count }}</strong>
<em>speaker{{ 's' if speaker_count != 1 }}</em>
</p>
<ul>
{% for s in speaker_top5 %}
<li>
<a href="{{ s.get_absolute_url() }}">{{ s }}</a>
(<strong>{{ s.count }} videos</strong>)
</li>
{% endfor %}
</ul>
<a href="{{ url('videos-speaker-list') }}">All speakers</a>
</div>
</div>
<div class="span4">
<div class="well">
<p class="stats-number">
<strong>{{ tag_count }}</strong>
<em>tag{{ 's' if tag_count != 1 }}</em>
</p>
<ul>
{% for tag in tag_top5 %}
<li>
{{ tag }}
(<strong>{{ tag.count }} videos</strong>)
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="row">
<div class="span4">
<div class="well">
<p class="stats-number">
<strong>{{ suggestions|length }}</strong>
<em>open suggestion{{ 's' if suggestions|length != 1 }}</em>
</p>
<ul>
{% for s in suggestions %}
<li>
{{ s }}
{% if s.state == 0 %}
(<strong>New</strong>)
{% elif s.state == 1 %}
(<strong>In progress</strong>)
{% endif %}
</li>
{% endfor %}
</ul>
<a href="{{ url('suggestions-list') }}">All suggestions</a>
</div>
</div>
</div>
{% endblock %}