summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-02-01 11:18:41 -0800
committerJesse Morgan <jesse@jesterpm.net>2014-02-01 11:18:41 -0800
commit710880b563734d71e9a29276bb259d53218ea67c (patch)
tree5645601ccd5b886e4360e208e6c37ebf6456b739 /src/templates
parenta7e5eb45f68c7c6862b3ad29361114059f5dae3f (diff)
Adding the feed backend support.
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/templates/training.ftl10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/templates/templates/training.ftl b/src/templates/templates/training.ftl
index 3f5331e..7989d15 100644
--- a/src/templates/templates/training.ftl
+++ b/src/templates/templates/training.ftl
@@ -32,10 +32,12 @@
<div class="progresslabel" style="left:${chapterProgress}%">${chapterProgress}%</div>
</div>
- <div id="videos">
+ <#assign sidebar=showfeed>
+
+ <div id="videos" <#if sidebar>style="width: 70%"</#if>>
<#assign allowed = true>
<#list videos as video>
- <article>
+ <article <#if sidebar>style="margin-right: 30px"</#if>>
<div class="image <#if video.completed>completed</#if> <#if allowed>allowed</#if>" id="${video.id}"><a href="#" onclick="playVideo('${video.id}'); return false"><img src="${video.image!staticRoot+"/images/videoimage.jpg"}" alt="${video.title}" /></a></div>
<h2><#if video.number != "0">${video.number}. </#if>${video.title}</h2>
<span class="duration"><@hms seconds=video.length /></span>
@@ -48,6 +50,10 @@
</article>
</#list>
</div>
+
+ <#if showfeed>
+ <#include "/templates/communityfeed.ftl">
+ </#if>
</div>
<div id="videoplayer">