Commit 108d3fdb authored by Andreas Valder's avatar Andreas Valder
Browse files

added labels to stats

parent 3fcf1265
......@@ -290,7 +290,7 @@ var moderator = {
return bsum-asum;
});
for (var i = 0; i < traces.length; i++) {
if (i > 30) {
if (i > 15) {
traces[i].visible = "legendonly";
}
}
......
......@@ -242,7 +242,7 @@ $('#embedcodebtn').popover(
</li>
{% if ismod() %}
<li class="pull-right">
<p>Zuschauer: <span data-lectureid="{{ lecture.id }}" data-lecturedate="{{ lecture.time }}" class="viewcounter">loading...</span></p>
<p>Abrufe: <span data-lectureid="{{ lecture.id }}" data-lecturedate="{{ lecture.time }}" class="viewcounter">loading...</span></p>
</li>
{% endif %}
</ul>
......
......@@ -7,11 +7,23 @@
</div>
<div class="panel-body">
<div class="row col-xs-12">
<div class="col-xs-12 col-md-6 plot-view" data-url="{{url_for('stats_generic', req="course_count")}}"></div>
<div class="col-xs-12 col-md-6 plot-view" data-url="{{url_for('stats_generic', req="lectures_count")}}"></div>
<div class="col-xs-12 col-md-6 plot-view" data-type="pie" data-url="{{url_for('stats_generic', req="categories_courses")}}"></div>
<div class="col-xs-12 col-md-6 plot-view" data-type="pie" data-url="{{url_for('stats_generic', req="categories_lectures")}}"></div>
<div class="col-xs-12 col-md-6 plot-view" data-type="pie" data-url="{{url_for('stats_generic', req="organizer_courses")}}"></div>
<div class="col-xs-12 col-md-6">
<p class="text-center">Veranstaltungen pro Semester</p>
<div class="plot-view" data-url="{{url_for('stats_generic', req="course_count")}}"></div>
</div>
<div class="col-xs-12 col-md-6">
<p class="text-center">Vorlesungen pro Semester</p>
<div class="plot-view" data-url="{{url_for('stats_generic', req="lectures_count")}}"></div>
</div>
<div class="col-xs-12 col-md-6">
<p class="text-center">Veranstaltungen pro Kategorie</p>
<div class="plot-view" data-type="pie" data-url="{{url_for('stats_generic', req="categories_courses")}}"></div>
</div>
<div class="col-xs-12 col-md-6">
<p class="text-center">Vorlesungen pro Kategorie</p>
<div class="plot-view" data-type="pie" data-url="{{url_for('stats_generic', req="categories_lectures")}}"></div>
</div>
<!--<div class="col-xs-12 col-md-12 plot-view" style="height: 1200px;" data-type="pie" data-url="{{url_for('stats_generic', req="organizer_courses")}}"></div>!-->
</div>
</div>
</div>
......@@ -20,9 +32,13 @@
<span class="panel-title"><a name="semesterstats"></a>Semester <select id="semesterselect" name="semester"><option value="">alle</option></select></span>
</div>
<div class="panel-body" >
<div class="row col-xs-12">
<div class="col-xs-12 plot-view" data-url="{{url_for('stats_viewsperday', req="global", filter=filter)}}"></div>
<div class="col-xs-12 plot-view" data-url="{{url_for('stats_viewsperday', req="courses", filter=filter)}}"></div>
<div class=col-xs-12">
<p class="text-center">Zuschauer pro Veranstaltung</p>
<div class="plot-view" data-url="{{url_for('stats_viewsperday', req="courses", filter=filter)}}"></div>
</div>
<div class=col-xs-12">
<p class="text-center">Zuschauer pro Format</p>
<div class="plot-view" data-url="{{url_for('stats_viewsperday', req="global", filter=filter)}}"></div>
</div>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment