Commit e5f8a68b authored by Kedar A.'s avatar Kedar A. 💻

Merge branch 'mongokit' of http://github.com/gnowledge/gstudio into mongokit-dev

parents 389774ff bbbf6341
......@@ -16,8 +16,8 @@ Master Trainer,"[""Person""]","[""factory_types""]",[],[],[]
Faculty Coordinator,"[""Person""]","[""factory_types""]",[],[],[]
NSS Coordinator,"[""Person""]","[""factory_types""]",[],[],[]
Course Developer,"[""Person""]","[""factory_types""]",[],[],[]
Steering Committee Member,"[""Person""]","[""factory_types""]",[],[],"[""Organization"", ""University"", ""College"", ""Course"", ""NUSSD Course"", ""Announced Course"", ""Person"", ""Partners"", ""Program Manager"", ""Steering Committee Member"", ""Faculty Coordinator"", ""Program Officer"", ""NSS Coordinator"", ""Course Developer"", ""Master Trainer"", ""Voluntary Teacher"", ""Student"", ""Enrollment"", ""StudentCourseEnrollment""]"
Program Officer,"[""Person""]","[""factory_types""]",[],[],"[""Person"", ""Student"", ""Enrollment"", ""StudentCourseEnrollment""]"
Steering Committee Member,"[""Person""]","[""factory_types""]",[],[],[]
Program Officer,"[""Person""]","[""factory_types""]",[],[],[]
Program Manager,"[""Person""]","[""factory_types""]",[],[],[]
Partners,"[""Person""]","[""factory_types""]",[],[],[]
Event,[],"[""GAPP""]",[],[],[]
......@@ -34,8 +34,8 @@ Lab Session,"[""Event""]","[""factory_types""]",[],[],[]
Exam,"[""Event""]","[""factory_types""]",[],[],[]
Enrollment,[],"[""factory_types""]",[],[],[]
StudentCourseEnrollment,"[""Enrollment""]","[""factory_types""]",[],[],[]
MIS,[],"[""GAPP""]",[],[],"[""Organization"", ""University"", ""College"", ""Course"", ""NUSSD Course"", ""Announced Course"", ""Person"", ""Partners"", ""Program Manager"", ""Steering Committee Member"", ""Faculty Coordinator"", ""Program Officer"", ""NSS Coordinator"", ""Course Developer"", ""Master Trainer"", ""Voluntary Teacher"", ""Student"", ""Enrollment"", ""StudentCourseEnrollment""]"
MIS-PO,[],"[""GAPP""]",[],[],"[""Person"", ""Voluntary Teacher"", ""Student""]"
MIS,[],"[""GAPP""]",[],[],[]
MIS-PO,[],"[""GAPP""]",[],[],[]
CourseSection,[],"[""factory_types""]",[],[],[]
CourseSubSection,[],"[""factory_types""]",[],[],[]
CourseUnit,[],"[""factory_types""]",[],[],[]
......
......@@ -9988,7 +9988,7 @@ aside#help p, aside#help h5, aside#help h6 {
/* line 926, ../../../scss/_app_styles.scss */
#replies-area .disc-replies {
padding: 10px;
background-color: #dffbfd;
background-color: #98f2f7;
width: 27em;
max-width: 40em;
margin-left: 48px;
......
......@@ -10082,7 +10082,7 @@ aside#help p, aside#help h5, aside#help h6 {
/* line 926, ../../../scss/_app_styles.scss */
#replies-area .disc-replies {
padding: 10px;
background-color: #fcfdfe;
background-color: #bedcf0;
width: 27em;
max-width: 40em;
margin-left: 48px;
......
......@@ -9988,7 +9988,7 @@ aside#help p, aside#help h5, aside#help h6 {
/* line 926, ../../../scss/_app_styles.scss */
#replies-area .disc-replies {
padding: 10px;
background-color: #dffbfd;
background-color: #98f2f7;
width: 27em;
max-width: 40em;
margin-left: 48px;
......
......@@ -926,7 +926,7 @@ aside#help{
#replies-area .disc-replies {
padding:10px;
background-color: lighten($primary-color, 55%);
background-color: lighten($primary-color, 40%);
width:27em;
max-width: 40em;
margin-left: 48px;
......
......@@ -158,12 +158,12 @@ i.remove-tag{
</div>
</div>
<fieldset class="medium-4 columns">
<legend>Privacy</legend>
<legend>Visibility</legend>
<div class="row">
<div class="medium-6 columns">
{% if node.created_by == request.user.pk %}
<span data-tooltip class="has-tip" title="Public pages can be viewed and edited by any group member, while private pages are only for you"></span>
<div class="privacy-mode switch round">
<div class="privacy-mode">
<input id="PUBLIC" name="login-mode" value="PUBLIC" type="radio" checked>
<label for="PUBLIC" onclick="">{% trans "Public" %} <i class="fi-torsos-all"></i></label>
......@@ -176,10 +176,11 @@ i.remove-tag{
{% else %}
{% if not node %}
<span data-tooltip class="has-tip" title="Public pages can be viewed and edited by any group member, while private pages are only for you"></span>
<div class="privacy-mode switch round">
<div class="privacy-mode">
<input id="PUBLIC" name="login-mode" value="PUBLIC" type="radio" checked>
<label for="PUBLIC" onclick="">{% trans "Public" %} <i class="fi-torsos-all"></i></label>
<br/>
<input id="PRIVATE" name="login-mode" value="PRIVATE" type="radio">
<label for="PRIVATE" onclick="">{% trans "Private" %} <i class="fi-lock"></i></label>
......
......@@ -138,7 +138,7 @@ function insertImg(fileurl){
$("#orgitdown_content_org").val(content);
}
}
$(".close-reveal-modal").trigger("click");
$("#insert-pic .close-reveal-modal").trigger("click");
}
}
......@@ -243,12 +243,13 @@ $(".orgitdownButton.orgitdownButton10 a").click(function(){
</div>
<div id="insert-pic" class="small reveal-modal" data-reveal>
<a class="close-reveal-modal">&#215;</a>
<h3>Add Internal/External Images:</h3>
<div>
<input type="radio" id="extimage" name="imginsert" onclick="externalImg()"><label>External</label>
<input type="radio" id="intimage" name="imginsert" onclick="internalImg()"><label>Internal</label>
</div></div>
<a class="close-reveal-modal">&#215;</a>
<h3>Add Internal/External Images:</h3>
<div>
<input type="radio" id="extimage" name="imginsert" onclick="externalImg()"><label>External</label>
<input type="radio" id="intimage" name="imginsert" onclick="internalImg()"><label>Internal</label>
</div>
</div>
<div id="int-img" class="small reveal-modal" data-reveal>
<a class="close-reveal-modal">&#215;</a>
......
......@@ -17,12 +17,12 @@
// Function for manipulating tree when user visits to page directly via browser url
TreeTillNode();
});
function TreeTillNode () {
// This gives the last hierarchy node id from browser url.
var url = window.location.search.replace("?selected=", "")
// var url = window.location.search.replace("?selected=", "")
var url = "{{selected}}";
// Condition to check whether the tree has been loaded on the page completely or not before attempting any function on tree(such as 'getNodeById')
if (url && $(".collection").not(".jqtree-loading").length > 0){
......@@ -37,8 +37,7 @@
setTimeout(function(){
// console.log($(".collection"))
if(url && ($(".collection").length > 0)) { TreeTillNode() }
}, 100 );
$(".jqtree-title-folder").addClass('jqtree-toggler').removeClass('jqtree-title').removeClass('jqtree-title-folder');}, 100 );
}
......@@ -50,12 +49,6 @@
var node_type = "{{node_type}}";
if(node_type=="Group"||node_type=="Course"){
$('.collection').tree({
autoOpen: true
});
}
$tree.tree({
selectable: true,
});
......@@ -97,10 +90,10 @@
}
}
var nav_list = parent_arr.reverse();
if(node['node_type']!="CourseSectionEvent" && node['node_type']!="CourseSubSectionEvent" && node['node_type']!="CourseUnitEvent"){
// alert(nav_list);
// alert(node_type);
if(node_type!="Group"){
// alert("node_type");
$.ajax({
type: "POST",
......@@ -126,21 +119,18 @@
// else if (node_type == "Course"){
// window.history.pushState("", "", "/{{group_id}}/course/course_detail/{{node.pk}}"+"?selected="+node.id+"");
// }
// else if (node_type == "Group"){
// window.history.pushState("", "", "/{{node.pk}}"+"?selected="+node.id+"");
// }
if (node_type == "CourseEventGroup"){
window.history.pushState("", "", "/{{node.pk}}"+"?selected="+node.id+"");
$(".view_page_link").trigger('click')
}
// else if (node_type == "Topic"){
// window.history.pushState("", "", "/{{group_name_tag}}/topic_details/{{node.pk}}"+"?selected="+node.id+"");
// }
$("#view_page").html(data);
}
});
}
}
}
);
......
......@@ -27,35 +27,8 @@
{% block collection_content %}
<div id="view_collection">
{{node_type}}
{% include "ndf/collection_ajax_view.html" %}
</div>
{% if node_type == "Course" %}
{% user_access_policy groupid request.user as user_access %}
{% if user_access == "allow" %}
<span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit Course Structure" %}{% else %}{% trans "Add Course Structure" %}{% endif %}</a></span>
{% endif %}
{% endif %}
{% endblock %}
{% block meta_content %}
{% endblock %}
<!-- overiding block_related content -->
{% block related_content %}
<!-- <section class="medium-6 large-12 columns">
<h3>{% trans "Modules" %}</h3>
<div class ="row">
{% for each in node.collection_set %}
bellow div for making tree from json data
<div class="tree" data-url="{% url 'get_module_json' groupid %}?_id={{each}}"></div>
{% endfor %}
</div>
</section> -->
{% endblock %}
<!-- overiding block from node_detail_base.html -->
......@@ -95,7 +68,15 @@
</small>
</section>
<section class="medium-3 columns name-section" >
<span><a class="small publish-btn button" style="width:73%" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
<span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
{% if node_type == "Course" %}
{% check_is_gstaff groupid request.user as is_gstaff %}
{% if is_gstaff %}
<span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit Course Structure" %}{% else %}{% trans "Add Course Structure" %}{% endif %}</a></span>
{% endif %}
{% endif %}
</section>
</header>
......@@ -108,30 +89,6 @@
{% endwith %}
</div>
<br>
{% if node_type != "Course" %}
<section class="medium-8 columns" >
<div class="ann_for row">
<label class="small-3 columns "> {% trans "Announced Course for :"%}</label>
<span class="small-6 columns end"><u><a href="{% url 'course_detail' group_name_tag cnode.pk %}">{{cnode.name}}</a></u></span>
</div>
<br/>
</section>
{% if user.is_authenticated %}
{% user_access_policy groupid request.user as user_access %}
{% if user_access != "allow" %}
<section class="medium-4 columns" >
<div class="row">
<div class="small-6 columns">
<input type="button" class="button enroll-btn" value="Enroll">
</div>
</div>
</section>
{% endif %}
{% endif %}
{% endif %}
<div id="view_page"></div>
......@@ -140,35 +97,6 @@
{% block script %}
{{block.super}}
$(document).on("click", ".enroll-btn", function(event) {
console.log("{{request.user.id}}")
enr_btn = $(this)
$.ajax({
url: "{% url 'course_enroll' group_id %}",
data: {
node_id: "{{node.pk}}",
usr_id: "{{request.user.id}}",
'csrfmiddlewaretoken': "{{csrf_token}}"
},
type: "POST",
dataType: "json",
success: function(data){
success_state = data["success"]
if(success_state){
enr_btn.attr("disabled",true)
.val("Enrolled");
}
else{
alert("Something went wrong. Please try again later.")
}
},
});//end of ajax
})
// Click on delete button
$(document).on('click','.fi-trash',function(){
lbl_msg = "Are you sure you want to delete '{{node.name}}' course?"
......@@ -198,11 +126,6 @@
{% block document_ready %}
{{block.super}}
{% if enrolled_status %}
$(".enroll-btn").attr("disabled",true)
.val("Enrolled");
{% endif %}
$(function() {
$('.tree').tree({
autoOpen: 0
......
......@@ -117,7 +117,7 @@
{% endif %}
</div>
<div class="small-3 columns">
<span data-tooltip title="You will be redirected to Course Authoring page" style="float:right;">
<span data-tooltip title="You will be redirected previous page" style="float:right;">
<a class="done_units tiny button round" style="float:right;">Back</a>
</span>
</div>
......@@ -498,11 +498,16 @@
$(document).on('click','.done_units',function(){
turl = "{% url 'create_course_struct' groupid course_node.pk %}"
if("{{app_id}}"!= ""){
turl += "?app_id={{app_id}}&app_set_id={{app_set_id}}"
}
$(this).attr("href",turl)
{% get_group_object groupid as group_object %}
{% if "CourseEventGroup" in group_object.member_of_names_list %}
$(this).attr('href', '/{{group_id}}/course/structure/create/{{group_id}}')
{% else %}
turl = "{% url 'create_course_struct' groupid course_node.pk %}"
if("{{app_id}}"!= ""){
turl += "?app_id={{app_id}}&app_set_id={{app_set_id}}"
}
$(this).attr("href",turl)
{% endif %}
})
......@@ -518,7 +523,7 @@
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
cell1.innerHTML = "Type";
cell2.innerHTML = "Name";
cell2.innerHTML = "All Resources";
cell3.innerHTML = "Action";
{% get_node unit_node.pk as unit_node %}
......
......@@ -9,11 +9,15 @@
{% get_group_name groupid as group_name_tag %}
{% block meta_content %}
{% if 'NUSSD Course' in cnode.member_of_names_list %}
<a href="{% url 'mis_course_detail' group_name_tag app_id app_set_id cnode %}"><h3><u>{{cnode.name}}</u></h3></a>
{% get_group_object groupid as group_object %}
{% if "CourseEventGroup" in group_object.member_of_names_list %}
<a href="{% url 'groupchange' groupid %}"><h3><u>{{cnode.name}}</u></h3></a>
{% else %}
<a href="{% url 'course_detail' group_name_tag cnode %}"><h3><u>{{cnode.name}}</h3></u></a>
{% if 'NUSSD Course' in cnode.member_of_names_list %}
<a href="{% url 'mis_course_detail' group_name_tag app_id app_set_id cnode %}"><h3><u>{{cnode.name}}</u></h3></a>
{% else %}
<a href="{% url 'course_detail' group_name_tag cnode %}"><h3><u>{{cnode.name}}</h3></u></a>
{% endif %}
{% endif %}
{% endblock %}
......@@ -22,7 +26,6 @@
{% block style %}
{{block.super}}
/*<style type="text/css">*/
/* Resetting css-properties for fieldset (also legend, input) */
/* fieldset (padding-bottom) */
fieldset {
......@@ -160,7 +163,6 @@
.course-section-class:hover .cs_setting{
display:block;
}
/*</style>*/
{% endblock %}
......
......@@ -398,6 +398,7 @@ this template is modified. So for the fields in the template it supports -
dateFormat: 'dd/mm/yy',
yearRange: lowerYearLimit + ":" + upperYearLimit,
defaultDate: '0',
minDate: '0',
onClose: function(dateText, inst) {
if($(this).attr('id') == 'event_start_date' || $(this).attr('id') == 'event_end_date'){
......
......@@ -7,9 +7,9 @@
<br/>
<div onclick="createDiscussion()" id="create-discussion" data-id="{{ node.pk }}" class="button" style="margin-bottom:0;">
{% if all_replies %}
Initiate New Discussion Thread
Comment
{% else %}
Initiate discussion on {{ node.name }}
Comment on {{ node.name }}
{% endif %}
</div>
......@@ -32,6 +32,20 @@
{{each_reply.HTMLcontent | safe }}
{% endspaceless %}
</div>
{% for node in each_reply.collection_set %}
<div style="margin: 1em;">
{{node.mime_type}}
<br/>
<a class="th" style="" href="{% url 'read_file' group_id node node.name %}">
{% if 'image' in node.mime_type %}
<img style="height:100px;" src="{% url 'getFileThumbnail' group_id node.pk %}" />
{% endif %}
<p>{{node.name}}</p>
</a>
</div>
{% endfor %}
</div>
<div class="row">
......@@ -53,6 +67,7 @@
<!-- Reply : -->
<textarea id="orgitdownreps" name="content_org" placeholder="Enter your reply text here."></textarea>
<input data-id="{{ node.pk }}" type="button" value="Post" class="button expand reply-button" onclick="addReply($(this))">
<input type="file" id="uploaded-files" style="" value="" multiple>
<input type="hidden" id="prior-node" style="visibility:hidden" value="">
<!-- <input type="hidden" id="thd" style="visibility:hidden" value=""> -->
</div>
......@@ -80,11 +95,12 @@
{% if request.user.is_authenticated %}
$("#orgitdownreps").orgitdown(mySettings);
{% endif %}
function createDiscussion()
{
// if( user_access == "allow" && edit_policy == "allow" )
if( user_access == "allow"){
if( is_user_authenticated )
{
{% if request.user.is_authenticated %}
......@@ -134,15 +150,19 @@
// alert("To start discussion you need to login and be the member of this group.");
alert("Login to start discussion");
}
}
else{
alert("Only group members can comment.");
}
}
// --- END of createDiscussion()
// function called by "Add Reply" and "Reply" buttons to open editor
function openOrgEditor(sourceObj)
{
// if( user_access == "allow" && edit_policy == "allow" )
if( user_access == "allow"){
if( is_user_authenticated )
{
......@@ -179,6 +199,11 @@
alert("Login to start discussion.");
}
}
else{
alert("Only group members can reply to comment.");
}
}
function updateDiscussionTabText()
......@@ -187,7 +212,7 @@
if(totalReplies == 0)
{
$(".view-discussion span").fadeOut().fadeIn().html("Begin Discussion");
$("#create-discussion").text("Initiate discussion on " + $("h1 span.node[itemprop]").text().trim());
$("#create-discussion").text("Comment " + $("h1 span.node[itemprop]").text().trim());
}
else
{
......@@ -198,13 +223,30 @@
function createReplyHTML(replyStyle, data)
{
var files = data[8];
// console.log(files)
filesContent = ""
files.forEach(function(f){
// console.log("=========")
// console.log(f)
var mime_type = f[1];
filesContent += "<div style='margin: 1em;'>"+ f[1] +"<br/>"+
"<a class='th' href='/{{group_id}}/file/readDoc/"+f[0]+"/"+f[2]+"'>";
if(mime_type.indexOf("image") >= 0){
filesContent += "<img style='height: 100px;' src='/{{group_id}}/file/thumbnail/"+ f[0] +"'/>";}
filesContent += "<p>" + f[2] + "</p></a></div>";
// console.log(filesContent);
});
var htmlReply = "<div style='"+ replyStyle +"' data-reply-id='"+ data[1] +"' data-priornode-id='"+ data[2] +"' class='disc-replies'>"
+ "<div class='row'><div class='small-3 columns'><a href='/home/"+ data[5] +"/dashboard' class='text-center'>"
+ "<span class='align-center'><i class='fi-torso'></i></span>"
+ "<label>" + data[6] + "</label></a></div>"
+ "<div class='small-9 columns'>"+ data[3] +"</div></div>"
+ "<div class='small-9 columns'>"+ data[3] + filesContent +"</div></div>"
+ "<div class='row'><div class='small-8 columns'><small>"+ data[7] + "</small></div>"
+ "<div class='row'><div class='small-8 columns'><small>"+ data[7] +"</small></div>"
+ "<div class='reply-btn small-2 columns' data-userid='"+ data[5] +"' onclick='deleteReply($(this))'>delete</div>"
+ "<div data-org-content='"
+ data[4] + "' onclick='openOrgEditor($(this))' data-id='"
......@@ -219,25 +261,36 @@
$('#org').foundation('reveal', 'close');
var priorNodeId = $("#prior-node").val(),
replyContent = $("#orgitdownreps").val().trim();
replyContent = $("#orgitdownreps:visible").val().trim();
// If reply is non empty - make ajax to save reply.
if( (replyContent.length > 0) && (priorNodeId.length == 24) )
{
docs_list = new FormData();
var all_files = document.getElementById("uploaded-files");
var docs_count = all_files.files.length;
for(var i = 0; i < docs_count; i++)
{
docs_list.append("upload"+i, all_files.files[i]);
// console.log(all_files.files[i]);
}
docs_list.append('upload_cnt', docs_count)
docs_list.append('csrfmiddlewaretoken','{{csrf_token}}');
docs_list.append('reply_text_content', replyContent)
docs_list.append('prior_node_id', priorNodeId)
$.ajax({
type: "POST",
url: "{% url 'discussion_reply' group_id node.pk %}",
data: {
"csrfmiddlewaretoken": "{{ csrf_token }}",
"prior_node_id": priorNodeId,
"reply_text_content": replyContent
},
data: docs_list,
processData: false,
contentType: false,
success: function(data){
......@@ -252,7 +305,7 @@
if(priorNodeId == "{{ node.pk }}") // main reply
{
// change the text of Start discussion and make it visible
$("#create-discussion").html("Initiate New Discussion Thread");
$("#create-discussion").html("Comment");
// $("#create-discussion").fadeIn();
//sample format of data = [0:"status_info", 1:"reply_id", 2:"prior_node", 3:"html_content", 4:"org_content", 5:"user_id", 6:"user_name", 7:"created_at" ]
......@@ -271,6 +324,7 @@
}
// updating tab-text
updateDiscussionTabText();
location.reload();
}
else if( data[0] == "no_content" ){
......
......@@ -13,7 +13,11 @@
.tabs dd.active a, .tabs .tab-title.active a { background-color: #f7f7f7; }
.tabs dd.active{ width: 100%; }
.tabs dd { width: 100%; }
.tabs dd a { padding-right: 0; width: 100%; }
.count { position: absolute; right: 5px; opacity: 0.75; }
.panel > .side-nav > .tabs i {margin-right: 0.5rem;}
......@@ -69,16 +73,17 @@
<ul class="side-nav">
<dl class="tabs" data-tab >
<!-- all files -->
<dd class="active" data-filetype="all">
<a href="#view-all">
<i class="fi-eye"></i>
{% trans "All files" %}
<span class="count">
{% if file_pages.count > 0 %} ({{ file_pages.count }}) {% endif %}
<span class="count text-right">
{% if file_pages.count > 0 %} {{ file_pages.count }} {% endif %}
</span>
</a>
</dd><br/>
</dd>
<!-- Documents -->
<dd data-filetype="Documents">
......@@ -86,7 +91,7 @@
<i class="fi-page-doc"></i>
{% trans "Documents" %}
<span class="count">
{% if doc_pages %} ({{ doc_pages }}) {% endif %}
{% if doc_pages %} {{ doc_pages }} {% endif %}
</span>
</a>
</dd><br/>
......@@ -97,7 +102,7 @@
<i class="fi-page-filled"></i>
{% trans "Pages" %}
<span class="count">
{% if page_count %} ({{ page_count }}) {% endif %}
{% if page_count %} {{ page_count }} {% endif %}
</span>
</a>
</dd><br/>
......@@ -109,7 +114,7 @@
<i class="fi-shuffle"></i>
{% trans "Interactives" %}
<span class="count">
({{ interactive_pages }})
{{ interactive_pages }}
</span>
</a>
</dd><br/>
......@@ -122,7 +127,7 @@
<i class="fi-book"></i>
{% trans "eBooks" %}
<span class="count">
({{ ebook_pages }})
{{ ebook_pages }}
</span>
</a>
</dd><br/>
......@@ -135,7 +140,7 @@
<i class="fi-music"></i>
{% trans "Audios" %}
<span class="count">
{% if audio_pages %} ({{ audio_pages }}) {% endif %}
{% if audio_pages %} {{ audio_pages }} {% endif %}
</span>
</a>
</dd><br/>
......@@ -146,7 +151,7 @@
<a href="#view-image"><i class="fi-camera"></i>
{% trans "Images" %}
<span class="count">
{% if image_pages %} ({{ image_pages }}) {% endif %}
{% if image_pages %} {{ image_pages }} {% endif %}
</span>
</a>
</dd><br/>
......@@ -158,7 +163,7 @@
<a href="#view-video"><i class="fi-video"></i>
{% trans "Videos" %}
<span class="count">
{% if video_pages %}({{ video_pages }}) {% endif %}
{% if video_pages %} {{ video_pages }} {% endif %}
</span>
</a>
</dd><br/>
......@@ -183,18 +188,18 @@
<a href="#view-pandora-video"><i class="fi-video"></i>
{% trans "Videos" %}
<span class="count">
{% if video_pages %}({{ video_pages }}){% endif %}