Style and markup tweaks for browse index
This commit is contained in:
parent
2fb9547738
commit
f7e126cf50
2 changed files with 53 additions and 57 deletions
|
@ -2,7 +2,7 @@
|
||||||
/* browseIndex.css contains styles used in the Index pages. */
|
/* browseIndex.css contains styles used in the Index pages. */
|
||||||
|
|
||||||
/* INDIVIDUAL LIST ------> */
|
/* INDIVIDUAL LIST ------> */
|
||||||
.individualList ul.individualData li{
|
.individualList ul.individualData li {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
display: inline;
|
display: inline;
|
||||||
padding-right: .3em;
|
padding-right: .3em;
|
||||||
|
@ -10,15 +10,17 @@
|
||||||
.pagination {
|
.pagination {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.pagination li{
|
.pagination li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
.pagination li.selectedNavPage{
|
.pagination li.selectedNavPage {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
.rdfLink {
|
.rdfLink {
|
||||||
|
padding-left: 0.5em;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
border-left: 1px solid #a6b1b0;
|
||||||
}
|
}
|
||||||
.individualList a.externalLink {
|
.individualList a.externalLink {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -36,7 +38,7 @@
|
||||||
.individualList li {
|
.individualList li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
.individualList li a {
|
.individualList li a {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
|
@ -1,16 +1,12 @@
|
||||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
<#-- List individual members of a class. -->
|
<#-- List individuals in the requested class. -->
|
||||||
|
|
||||||
<#import "lib-list.ftl" as l>
|
<#import "lib-list.ftl" as l>
|
||||||
${stylesheets.add("/css/browseIndex.css")}
|
${stylesheets.add("/css/browseIndex.css")}
|
||||||
<div class="contents">
|
|
||||||
<div class="individualList">
|
<section class="individualList">
|
||||||
<h2>${title}
|
<h2>${title} <span class="rdfLink"><a class="icon-rdf" href="${redirecturl}" title="View the ${title} list in RDF format">RDF</a></span></h2>
|
||||||
<span class="rdfLink">
|
|
||||||
<a class="icon-rdf" href="${redirecturl}" title="View the ${title} list in RDF format">RDF</a>
|
|
||||||
</span>
|
|
||||||
</h2>
|
|
||||||
<#if subtitle??>
|
<#if subtitle??>
|
||||||
<h4>${subtitle}</h4>
|
<h4>${subtitle}</h4>
|
||||||
</#if>
|
</#if>
|
||||||
|
@ -18,22 +14,23 @@ ${stylesheets.add("/css/browseIndex.css")}
|
||||||
<#if message??>
|
<#if message??>
|
||||||
<p>${message}</p>
|
<p>${message}</p>
|
||||||
<#else>
|
<#else>
|
||||||
|
|
||||||
<#assign pagination>
|
<#assign pagination>
|
||||||
<#if (pages?size > 1) >
|
<#if (pages?size > 1) >
|
||||||
pages:
|
pages:
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
<#list pages as page>
|
<#list pages as page>
|
||||||
<#if page.selected><li class="selectedNavPage">${page.text}</li>
|
<#if page.selected>
|
||||||
|
<li class="selectedNavPage">${page.text}</li>
|
||||||
|
<#else>
|
||||||
<#-- RY Ideally the urls would be generated by the controller; see search-pagedResults.ftl -->
|
<#-- RY Ideally the urls would be generated by the controller; see search-pagedResults.ftl -->
|
||||||
<#else><li><a href="${urls.base}/individuallist?${page.param}&vclassId=${vclassId?url}">${page.text}</a></li>
|
<li><a href="${urls.base}/individuallist?${page.param}&vclassId=${vclassId?url}">${page.text}</a></li>
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
</ul>
|
</ul>
|
||||||
</#if>
|
</#if>
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
${pagination}
|
${pagination} \
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<#list individuals as individual>
|
<#list individuals as individual>
|
||||||
|
@ -43,11 +40,10 @@ ${stylesheets.add("/css/browseIndex.css")}
|
||||||
a custom list or use the custom short view, but for now just hard-code the view here; it will not be
|
a custom list or use the custom short view, but for now just hard-code the view here; it will not be
|
||||||
customizable.
|
customizable.
|
||||||
<#include "${individual.searchView}"> -->
|
<#include "${individual.searchView}"> -->
|
||||||
<a href="${individual.profileUrl}">${individual.name}</a>
|
<a href="${individual.profileUrl}">${individual.name}</a><#if individual.moniker??> <span class="moniker">${individual.moniker}</span></#if>
|
||||||
|
<#if individual.links?has_content>
|
||||||
<ul class="individualData">
|
<ul class="individualData">
|
||||||
<@l.firstLastList>
|
<@l.firstLastList>
|
||||||
<#if individual.moniker??><li>${individual.moniker}</li></#if>
|
|
||||||
|
|
||||||
<#list individual.links as link>
|
<#list individual.links as link>
|
||||||
<#if link?? && link.url?? && link.anchor?? >
|
<#if link?? && link.url?? && link.anchor?? >
|
||||||
<li><a class="externalLink" href="${link.url}">${link.anchor}</a></li>
|
<li><a class="externalLink" href="${link.url}">${link.anchor}</a></li>
|
||||||
|
@ -55,13 +51,11 @@ ${stylesheets.add("/css/browseIndex.css")}
|
||||||
</#list>
|
</#list>
|
||||||
</@l.firstLastList>
|
</@l.firstLastList>
|
||||||
</ul>
|
</ul>
|
||||||
|
</#if>
|
||||||
</li>
|
</li>
|
||||||
</#list>
|
</#list>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
${pagination}
|
${pagination}
|
||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
</div>
|
</section> <!-- .individualList -->
|
||||||
</div>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue