-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassessment-awards.ftl
62 lines (56 loc) · 2.13 KB
/
assessment-awards.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<#function userIsMemberOf groupName>
<#list user.getGroups() as group>
<#if group.getName() == groupName>
<#return true>
</#if>
</#list>
<#return false>
</#function>
<#-- only display for faculty/staff, no need to specify Architecture here since they're the only ones able to see items anyways -->
<#if userIsMemberOf('Faculty') || userIsMemberOf('faculty') || userIsMemberOf('staff') || userIsMemberOf('Staff') || userIsMemberOf('System Administrators')>
<style>
ul.cida li {
list-style-type: none;
}
</style>
<#assign accreditation = xml.get('local/accreditation')>
<#assign standards = xml.list('local/assessmentWrapper/standardWrapper/standardStaging')?sort>
<#assign nominations = xml.list('local/nominatedFor')>
<#assign awards = xml.list('local/award')>
<#if awards?size != 0 || nominations?size != 0 || accreditation != "" || standards?size != 0>
<br>
<h4 class="alert text-center">Information below displays only to Architecture Division Faculty & College Administrators</h4>
</#if>
<#if nominations?size != 0>
<dd><b>Nomination(s)</b>: <#list nominations as nomination>
${nomination}<#if nomination_has_next>, </#if>
</#list></dd>
</#if>
<#if awards?size != 0>
<dd><b>Award(s)</b>: <#list awards as award>
${award}<#if award_has_next>, </#if>
</#list></dd>
</#if>
<#assign accreditations = xml.list('local/accreditation')>
<#if accreditations?size != 0>
<dd><b>Used In</b>:<br>
<#list accreditations as a>${a}<br></#list>
</dd>
</#if>
<#if standards?size != 0>
<br>
<h4>Associated Accreditation Standards</h4>
<#-- "standard" here is an EQUELLA style for normal-looking <ul>s -->
<ul class="cida standard">
<#list standards as standard>
<li>
${standard?replace('\\', '<ul class="cida"><li>')}
<#-- close out subStandard sub-list -->
</ul></li>
</li>
</#list>
</ul>
</#if>
</#if>
<#-- close dl opened in other display templates -->
</dl>