This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from edx/dan-f/next-previous-video-buttons
Add next/previous buttons to video engagement timelines
- Loading branch information
Showing
13 changed files
with
329 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 17 additions & 16 deletions
33
analytics_dashboard/courses/templates/courses/_module_description.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
{% load i18n %} | ||
|
||
{% if view_live_url or description %} | ||
<div class="col-xs-12 module-description"> | ||
<div class="col-sm-10 col-xs-12"> | ||
<p>{{ description }}</p> | ||
</div> | ||
|
||
<div class="col-sm-2 col-xs-12"> | ||
{% if view_live_url %} | ||
<a href="{{ view_live_url }}" class="btn btn-default pull-right" | ||
role="button" target="_blank"> | ||
{# Translators: This text will be a direct link to the a specific module/problem. #} | ||
{% trans "View Live" %} | ||
</a> | ||
{% endif %} | ||
<div class="col-xs-12 module-description"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-10 col-xs-12"> | ||
<p>{{ description }}</p> | ||
</div> | ||
<div class="col-sm-2 col-xs-12"> | ||
{% if view_live_url %} | ||
<a href="{{ view_live_url }}" class="btn btn-default pull-right" | ||
role="button" target="_blank"> | ||
{# Translators: This text will be a direct link to the a specific module/problem. #} | ||
{% trans "View Live" %} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> | ||
{% endif %} | ||
</div> | ||
<div class="clearfix"></div> |
32 changes: 32 additions & 0 deletions
32
analytics_dashboard/courses/templates/courses/_video_module_controls.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% load i18n %} | ||
|
||
<div class="col-xs-12 module-controls"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-xs-4"> | ||
<a href="{% firstof previous_video_url "#" %}" | ||
class="previous-link btn btn-default {% if not previous_video_url %} disabled {% endif %}"> | ||
{% trans 'Previous Video' %} | ||
</a> | ||
</div> | ||
<div class="col-xs-4"> | ||
{% if view_live_url %} | ||
<div class="text-center"> | ||
<a href="{{ view_live_url }}" class="btn btn-default" | ||
role="button" target="_blank"> | ||
{# Translators: This text will be a direct link to the a specific module/problem. #} | ||
{% trans "View Live" %} | ||
</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="col-xs-4"> | ||
<a href="{% firstof next_video_url "#" %}" | ||
class="previous-link btn btn-default pull-right {% if not next_video_url %} disabled {% endif %}"> | ||
{% trans 'Next Video' %} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.