Private
Public Access
1
0

added FB and Twitter share buttons

This commit is contained in:
Sander Roosendaal
2017-10-09 11:07:29 +02:00
parent 5b5c5c68a9
commit 1c137a6852
6 changed files with 76 additions and 4 deletions

View File

@@ -2,6 +2,8 @@
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% get_current_timezone as TIME_ZONE %}
{% block title %}{{ workout.name }}{% endblock %}
@@ -67,6 +69,20 @@
<td>
<a href="/rowers/workout/{{ workout.id }}">https://rowsandall.com/rowers/workout/{{ workout.id }}</a>
</td>
</tr><tr>
<th>Share to</th>
<td>
<div class="grid_1 alpha">
<div class="fb-share-button" data-href="https://rowsandall.com/rowers/workout/{{ workout.id }}" 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 }}&amp;src=sdkpreparse">Share</a></div>
</div>
<div class="grid_1">
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet"
data-url="https://rowsandall.com/rowers/workout/{{ workout.id }}"
data-text="@rowsandall">Tweet</a>
</div>
</td>
</tr><tr>
<th>Comments</th>
<td>