added FB and Twitter share buttons
This commit is contained in:
@@ -12,8 +12,23 @@
|
||||
<meta property="og:image" content="http://rowsandall.com/{{ graph.filename |spacetohtml }}" />
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>{{ workout.name }}</h1>
|
||||
<h1>{{ workout.name }}</h1>
|
||||
<div class="grid_12">
|
||||
<div class="grid_1 alpha">
|
||||
<div class="fb-share-button" data-href="https://rowsandall.com/rower/graph/{{ graph.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/graph/{{ graph.id }}&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/graph/{{ graph.id }}"
|
||||
data-text="@rowsandall">Tweet</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
<div class="grid_12">
|
||||
<div class="grid_2 alpha">
|
||||
{% if user.is_authenticated and user == rower.user %}
|
||||
<p>
|
||||
@@ -34,7 +49,7 @@
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="grid_12">
|
||||
<p>
|
||||
<a href="/{{ graph.filename }}" download="myimage">
|
||||
|
||||
@@ -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 }}&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>
|
||||
|
||||
@@ -27,9 +27,20 @@
|
||||
<div id="workouts" class="grid_6 alpha">
|
||||
|
||||
|
||||
<h1>{{ workout.name }}</h1>
|
||||
<h1>{{ workout.name }}</h1>
|
||||
<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 }}&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>
|
||||
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<tr>
|
||||
<th>Rower:</th><td>{{ first_name }} {{ last_name }}</td>
|
||||
</tr><tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user