Work on FreeMarker version of individual list page

This commit is contained in:
rjy7 2010-05-21 21:49:53 +00:00
parent 4aa300e5a3
commit c4709265c4
10 changed files with 65 additions and 50 deletions

View file

@ -31,7 +31,7 @@
<div id="content">
<div class="contents">
<div class="entityList">
<div class="individualList">
<h2>${title}</h2>
<c:if test="${!empty subTitle}"><h4>${subTitle}"</h4></c:if>

View file

@ -4,34 +4,19 @@
<div class="contents">
<div class="entityList">
<div class="individualList">
<h2>${title}</h2>
<#if subtitle??>
<h4>${subTitle}"</h4>
</#if>
<#-- RY NEED TO ACCOUNT FOR p:process stuff -->
<ul>
<#list entities as entity>
<#-- Iterate through the object's class hierarchy, looking for a custom view -->
<#-- RY This should be done in a view method -->
<#list entity.VClasses as type>
<#if type.customSearchView?has_content>
<#assign altRender = type.customSearchView>
<#-- What order are these returned in? If from specific to general, we should break if we find one -->
</#if>
</#list>
<#list individuals as individual>
<li>
<#-- RY Create a directive to work like c:url with c:param -->
<#-- RY The JSP version includes URL rewriting in a filter - see URLRewritingHttpServletResponse -->
<a href="${entityUrl}${entity.URI?url}">${entity.name}</a> | <#-- add p:process to name -->
<#if entity.moniker?has_content>
${entity.moniker} <#-- add p:process -->
<#else>
${entity.VClass.name}
</#if>
<a href="${individual.profileUrl}">${individual.name}</a> ${individual.tagline}
</li>
</#list>
</ul>
</div>
</div>
</div>