added sharing buttons
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
{% block og_description %}{{ workout.name }}
|
||||
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
|
||||
|
||||
{% for graph in graphs %}
|
||||
|
||||
{% block og_image %}
|
||||
{% if graphs %}
|
||||
{% for graph in graphs %}
|
||||
@@ -39,7 +39,6 @@
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% endfor %}
|
||||
{% block main %}
|
||||
|
||||
<h1>{{ workout.name }}</h1>
|
||||
@@ -63,10 +62,10 @@
|
||||
{% endif %}
|
||||
<p>
|
||||
<div class="fb-share-button"
|
||||
data-href="https://rowsandall.com/rowers/workout/{{ workout.id|encode }}"
|
||||
data-href="https://rowsandall.com/rowers/workout/{{ workout.id|encode }}/"
|
||||
data-layout="button" data-size="small" data-mobile-iframe="false">
|
||||
<a class="fb-xfbml-parse-ignore" target="_blank"
|
||||
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/workout/{{ workout.id|encode }}">
|
||||
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/workout/{{ workout.id|encode }}/">
|
||||
Share
|
||||
</a>
|
||||
</div>
|
||||
@@ -74,7 +73,7 @@
|
||||
<p>
|
||||
<a class="twitter-share-button"
|
||||
href="https://twitter.com/intent/tweet"
|
||||
data-url="https://rowsandall.com/rowers/workout/{{ workout.id|encode }}"
|
||||
data-url="https://rowsandall.com/rowers/workout/{{ workout.id|encode }}/"
|
||||
data-text="@rowsandall #rowingdata">Tweet</a>
|
||||
</p>
|
||||
<table width=100%>
|
||||
@@ -122,7 +121,7 @@
|
||||
|
||||
{{ mapdiv|safe }}
|
||||
|
||||
|
||||
|
||||
{{ mapscript|safe }}
|
||||
</div>
|
||||
</li>
|
||||
@@ -132,7 +131,7 @@
|
||||
<script async="true" type="text/javascript">
|
||||
Bokeh.set_log_level("info");
|
||||
</script>
|
||||
|
||||
|
||||
{{ interactiveplot |safe }}
|
||||
|
||||
{{ the_div|safe }}
|
||||
@@ -141,7 +140,7 @@
|
||||
{% for graph in graphs %}
|
||||
<li>
|
||||
<a href="/rowers/graph/{{ graph.id }}/">
|
||||
<img src="/{{ graph.filename }}"
|
||||
<img src="/{{ graph.filename }}"
|
||||
onerror="this.src='/static/img/rowingtimer.gif'"
|
||||
alt="{{ graph.filename }}" width="120" height="100">
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user