JAL-957 JAL-1400 JAL-1407 signed and unsigned jalviewApplet example links.
[jalview.git] / examples-jbake / templates / page.ftl
index 34b8789..19e344e 100644 (file)
@@ -4,10 +4,30 @@
 <div id="content" class="content">
 
 <#if (content.class?exists) > 
+
+<!-- content template start -->
   <#include content.class />
+<!-- content template end -->
+
+<!-- boiler plate link to alternate demopage -->
+
+<h2>This is a JalviewLite Demo Page</h2>
+<p align="left">
+<#if (content.alteg?exists) >
+ if you have an up to date version of Java, then<br/>Try <a href="${content.uri?substring(3)}">the signed applet demos</a><br/>
+<#else>
+ Are you are using an old version of Java (pre 1.7.0_51) ?<br/>Try <a href="u_${content.uri?substring(1)}">the unsigned applet demos</a><br/>
 </#if>
+</p>
+
+<#else>
+
 <!-- content start -->
 ${content.body}
 <!-- content end -->
-</div>
+
+</#if>
+
+</div> <!-- end content div -->
+
 <#include "footer.ftl"/>
\ No newline at end of file