diff --git a/rowers/templates/show_graph.html b/rowers/templates/show_graph.html index 3ac636e9..1221cc03 100644 --- a/rowers/templates/show_graph.html +++ b/rowers/templates/show_graph.html @@ -9,7 +9,7 @@ {% block og_description %}{{ workout.name }} {{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %} {% block og_image %} - + {% endblock %} {% block content %}

{{ workout.name }}

diff --git a/rowers/templates/workout_view.html b/rowers/templates/workout_view.html index 9e5c8d3c..a823aec1 100644 --- a/rowers/templates/workout_view.html +++ b/rowers/templates/workout_view.html @@ -13,12 +13,12 @@ {% for graph in graphs1 %} {% block og_image %} {% for graph in graphs1 %} - + {% endfor %} {% endblock %} {% block image_src %} {% for graph in graphs1 %} - + {% endfor %} {% endblock %} diff --git a/rowers/templatetags/rowerfilters.py b/rowers/templatetags/rowerfilters.py index 840d74d4..12cd75b1 100644 --- a/rowers/templatetags/rowerfilters.py +++ b/rowers/templatetags/rowerfilters.py @@ -39,6 +39,10 @@ def secondstotimestring(tdelta): return res +@register.filter +def spacetohtml(t): + return t.replace(" ","%20") + @register.filter def durationprint(d,dstring): if (d == None): @@ -113,6 +117,8 @@ def user_teams(user): return teams + + @register.filter def has_teams(user): try: