JAL-957 tidier source and ensure permissions is explicitly set for signed example
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 28 Jan 2014 11:36:42 +0000 (11:36 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 28 Jan 2014 11:36:42 +0000 (11:36 +0000)
examples-jbake/templates/macros.ftl

index 04a4498..47d031b 100644 (file)
@@ -5,7 +5,12 @@
 <applet
    code="jalview.bin.JalviewLite" width="${width}" height="${height}"
    archive="${appjar}">
-<#list appparams as p><#if (params[p])?has_content><param name="${p}" value="${params[p]}"/></#if></#list>
+<#if (!content.alteg?exists)>
+<param name="permissions" value="sandbox"/>
+</#if>
+<#list appparams as p>
+<#if (params[p])?has_content><param name="${p}" value="${params[p]}"/>
+</#if></#list>
 <#if (prots)>
    <param name="linkLabel_1" value="Uniprot"/>
    <param name="linkUrl_1"