Private
Public Access
1
0

v1 of workflow.html - need speed up chart generation

This commit is contained in:
Sander Roosendaal
2017-10-12 22:20:07 +02:00
parent 3028809d24
commit e806089ef7
4 changed files with 288 additions and 9 deletions

View File

@@ -0,0 +1,41 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% get_current_timezone as TIME_ZONE %}
{% block title %}{{ workout.name }}{% endblock %}
{% block og_title %}{{ workout.name }}{% endblock %}
{% block description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% block og_description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% block meta %}
<script type="text/javascript" src="/static/js/bokeh-0.12.3.min.js"></script>
<script async="true" type="text/javascript">
Bokeh.set_log_level("info");
</script>
{% for chart in charts %}
{{ chart.script |safe }}
{% endfor %}
{% endblock %}
{% block content %}
<div id="workouts" class="grid_12 alpha">
{% for chart in charts %}
<div class="grid_3 alpha">
<h2>{{ forloop.counter }}</h2>
<div class="grid_3 tooltip">
<a href="/rowers/workout/{{ workout.id }}/flexchart?favoritechart={{ forloop.counter |add:"-1" }}">
{{ chart.div | safe }}
</a>
<span class="tooltiptext">{{ chart.notes }}</span>
</div>
</div>
{% endfor %}
</div>
{% endblock %}