2a2400890b03c6b078fd70ae8c7e35ef35a791ea
[jalview.git] / examples-jbake / templates / macros.ftl
1 <#assign appparams = [ "file","features","treeFile","userDefinedColour","sortByTree","showSequenceLogo","showGroupConsensus","showFullId","linkLabel_1","linkUrl_1","linkUrl_2","linkLabel_2","windowHeight","windowWidth","showFeatureSettings","wrap","showAnnotation","defaultColour","embedded", "debug", "PDBfile" ] />
2
3
4 <#macro jvlitebutton appjar params prots=true width=140 height=35>
5 <applet
6    code="jalview.bin.JalviewLite" width="${width}" height="${height}"
7    archive="${appjar}">
8 <#if (!content.alteg?exists)>
9 <param name="permissions" value="sandbox"/>
10 </#if>
11 <#list appparams as p>
12 <#if (params[p])?has_content><param name="${p}" value="${params[p]}"/>
13 </#if></#list>
14 <#if (prots)>
15    <param name="linkLabel_1" value="Uniprot"/>
16    <param name="linkUrl_1"
17      value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$"/>
18    <param name="linkLabel_2" value="EMBL-EBI Search"/>
19    <param name="linkUrl_2"
20      value="http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"/>
21 </#if>
22    <param name="APPLICATION_URL"
23      value="http://www.jalview.org/services/launchApp"/>
24 </applet>
25 </#macro>