Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hellenkamp
website
Commits
13890663
Commit
13890663
authored
May 19, 2017
by
Andreas Valder
Browse files
moved course statistic to panel
parent
283595fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/course.html
View file @
13890663
...
...
@@ -35,7 +35,7 @@
</tbody>
</table>
</div>
{% if ismod() %}
{% if ismod() %}
<div
class=
"col-xs-12"
style=
"margin-top: 20px"
>
<table
class=
"table-condensed table-top-aligned"
>
<tbody>
...
...
@@ -51,11 +51,22 @@
</tbody>
</table>
</div>
<div
class=
"col-xs-6 plot-view"
data-url=
"{{url_for('stats_viewsperday', req="
course
",
param=
course.id)}}"
></div>
<div
class=
"col-xs-6 plot-view"
data-type=
"bar"
data-url=
"{{url_for('stats_generic', req="
lecture_views
",
param=
course.id)}}"
></div>
{% endif %}
{% endif %}
</div>
</div>
{% if ismod() %}
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
data-toggle=
"collapse"
href=
"#statspanel"
><h1
class=
"panel-title"
>
Statistiken
</h1></a>
</div>
<div
class=
"row panel-body collapse out panel-collapse"
id=
"statspanel"
>
<div
class=
"col-md-6 col-xs-12 plot-view"
data-url=
"{{url_for('stats_viewsperday', req="
course
",
param=
course.id)}}"
></div>
<div
class=
"col-md-6 col-xs-12 plot-view"
data-type=
"bar"
data-url=
"{{url_for('stats_generic', req="
lecture_views
",
param=
course.id)}}"
></div>
</div>
</div>
{% endif %}
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h1
class=
"panel-title"
>
Videos{% if ismod() %}
<a
class=
"btn btn-default"
style=
"margin-right: 5px;"
href=
"{{ url_for('create', table='lectures', time=datetime.now(), title='Noch kein Titel', visible='0', course_id=course.id, ref=request.url) }}"
>
Neuer Termin
</a><a
class=
"btn btn-default"
style=
"margin-right: 5px;"
href=
"{{url_for('list_import_sources', id=course['id'])}}"
>
Campus Import
</a>
{% endif %}
<a
class=
"fa fa-rss-square pull-right"
aria-hidden=
"true"
href=
"{{url_for('feed', handle=course.handle)}}"
style=
"text-decoration: none"
></a>
</h1>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment