summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-09-15 16:57:53 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-09-15 16:57:53 -0700
commit48af9ac4779b2d60889b0159f47442b5d6d9c8ce (patch)
treec51a021f4da706dede8c5360c8916da812c63e1e /src/templates
parentc68f0faf73b92993875d8e7365427a54ff84fbaa (diff)
Adding Introduction Chapter.
Introduction chapter is always required and thus after the assessment the user is taken directly to the introduction. After the introduction training continues with whichever section the user assessed in to.
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/templates/assessment-results.ftl2
-rw-r--r--src/templates/templates/training.ftl13
2 files changed, 8 insertions, 7 deletions
diff --git a/src/templates/templates/assessment-results.ftl b/src/templates/templates/assessment-results.ftl
index 2bbe8a5..95ee7af 100644
--- a/src/templates/templates/assessment-results.ftl
+++ b/src/templates/templates/assessment-results.ftl
@@ -27,7 +27,7 @@
</@content>
<div id="getstarted">
- <a class="greenbutton" href="${dynamicRoot}/account/training/${stage?lower_case}">Begin GROWing &#x2799;</a>
+ <a class="greenbutton" href="${dynamicRoot}/account/training/introduction">Begin GROWing &#x2799;</a>
</div>
</@commonpage>
diff --git a/src/templates/templates/training.ftl b/src/templates/templates/training.ftl
index a2bf5ea..62379a7 100644
--- a/src/templates/templates/training.ftl
+++ b/src/templates/templates/training.ftl
@@ -11,17 +11,18 @@
<div id="progressbar">
<#switch chapter>
- <#case "seeker"><#assign overallProgress = 0><#break>
- <#case "believer"><#assign overallProgress = 25><#break>
- <#case "disciple"><#assign overallProgress = 50><#break>
- <#case "teacher"><#assign overallProgress = 75><#break>
+ <#case "introduction"><#assign overallProgress = 0><#break>
+ <#case "seeker"><#assign overallProgress = 20><#break>
+ <#case "believer"><#assign overallProgress = 40><#break>
+ <#case "disciple"><#assign overallProgress = 60><#break>
+ <#case "teacher"><#assign overallProgress = 80><#break>
</#switch>
<div class="progress" style="width: ${overallProgress}%"></div>
</div>
<div id="content">
<nav>
- <#assign chapters = ["seeker", "believer", "disciple", "teacher"]>
+ <#assign chapters = ["introduction", "seeker", "believer", "disciple", "teacher"]>
<#list chapters as x>
<a href="${dynamicRoot}/account/training/${x}" <#if x == chapter>class="current"</#if>>${x?capitalize}</a>
<#if x_has_next> - </#if>
@@ -41,7 +42,7 @@
<h2>${video.title}</h2>
<span class="duration"><@hms seconds=video.length /></span>
<#if (video.pdf!"") != "">
- <span class="pdf"><a href="${video.pdf}">Outline</a></span>
+ <span class="pdf"><a href="${video.pdf}" target="_blank">Outline</a></span>
</#if>
</article>
</#list>