diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-02-01 11:18:41 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-02-01 11:18:41 -0800 |
commit | 06dcb39ca435897b082a5d454a11ddb21f230799 (patch) | |
tree | 66bc8c14065c4b947b011c765d677b0b1e2b3c13 /src/templates | |
parent | 331f4939eb8f983b5b85663d7549e604ef485b9a (diff) |
Adding the feed backend support.
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/templates/training.ftl | 10 |
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"> |