Better navigation on mini video page
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
function copyText() {
|
function copyText() {
|
||||||
var tempInput = document.createElement("input");
|
var tempInput = document.createElement("input");
|
||||||
tempInput.style = "position: absolute; left: -1000px; top: -1000px";
|
tempInput.style = "position: absolute; left: -1000px; top: -1000px";
|
||||||
tempInput.value = "{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/";
|
tempInput.value = "{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/m/";
|
||||||
document.body.appendChild(tempInput);
|
document.body.appendChild(tempInput);
|
||||||
tempInput.select();
|
tempInput.select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
@@ -108,19 +108,22 @@ function copyText() {
|
|||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<p>Playing the video will advance the data in synchronization. Use the regular
|
<p>Playing the video will advance the data in synchronization. Use the regular
|
||||||
YouTube controls to move around in the video and play it.</p>
|
YouTube controls to move around in the video and play it.</p>
|
||||||
|
<p>In this reduced view, you cannot edit the video analysis. There is a separate
|
||||||
|
view for that <a href="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}">here</a>.
|
||||||
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<span class="fb-share-button" style="height:20px; vertical-align: top;"
|
<span class="fb-share-button" style="height:20px; vertical-align: top;"
|
||||||
data-href="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}"
|
data-href="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/m/"
|
||||||
data-layout="button" data-size="small" data-mobile-iframe="false">
|
data-layout="button" data-size="small" data-mobile-iframe="false">
|
||||||
<a class="fb-xfbml-parse-ignore" target="_blank"
|
<a class="fb-xfbml-parse-ignore" target="_blank"
|
||||||
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/">
|
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/m/">
|
||||||
Share</a>
|
Share</a>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<a class="twitter-share-button"
|
<a class="twitter-share-button"
|
||||||
href="https://twitter.com/intent/tweet"
|
href="https://twitter.com/intent/tweet"
|
||||||
data-url="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/"
|
data-url="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/m/"
|
||||||
data-text="@rowsandall #rowingdata">Tweet</a>
|
data-text="@rowsandall #rowingdata">Tweet</a>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ def workout_video_view_mini(request,id=''):
|
|||||||
'name': w.name
|
'name': w.name
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'url':reverse('workout_video_view',kwargs={'id':encoder.encode_hex(analysis.id)}),
|
'url':reverse('workout_video_view_mini',kwargs={'id':encoder.encode_hex(analysis.id)}),
|
||||||
'name': 'Video Analysis'
|
'name': 'Video Analysis'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user