additional home page redesign changes
This commit is contained in:
parent
1ca0904911
commit
afbf429165
7 changed files with 49 additions and 43 deletions
BIN
webapp/themes/vitro/images/filteredSearch.gif
Normal file
BIN
webapp/themes/vitro/images/filteredSearch.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
webapp/themes/vitro/images/filteredSearchActive.gif
Normal file
BIN
webapp/themes/vitro/images/filteredSearchActive.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
webapp/themes/vitro/images/limit-search.png
Normal file
BIN
webapp/themes/vitro/images/limit-search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
webapp/themes/vitro/images/search-field-and-button.gif
Normal file
BIN
webapp/themes/vitro/images/search-field-and-button.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -55,14 +55,17 @@
|
||||||
|
|
||||||
<@widget name="login" />
|
<@widget name="login" />
|
||||||
|
|
||||||
<section id="home-stats" class="home-sections" >
|
<!-- Statistical information relating to property groups and their classes; displayed horizontally, not vertically-->
|
||||||
<h4>Statistics</h4>
|
|
||||||
|
|
||||||
<ul id="stats">
|
|
||||||
<@lh.allClassGroups vClassGroups! />
|
<@lh.allClassGroups vClassGroups! />
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<#include "footer.ftl">
|
<#include "footer.ftl">
|
||||||
|
<script>
|
||||||
|
// this will ensure that the hidden classgroup input is cleared if the back button is used
|
||||||
|
// to return to the home page from the search results. Not in vitroUtils.js because that
|
||||||
|
// gets loaded on every page.
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('input[name="classgroup"]').val("");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -251,6 +251,7 @@ p#mngLabelsText {
|
||||||
/* SEARCH HOME------> */
|
/* SEARCH HOME------> */
|
||||||
#search-home {
|
#search-home {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
|
width: 570px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-home h3 {
|
#search-home h3 {
|
||||||
|
|
|
@ -17,23 +17,21 @@
|
||||||
<#-- Loop through classGroups first so we can account for situations when all class groups are empty -->
|
<#-- Loop through classGroups first so we can account for situations when all class groups are empty -->
|
||||||
<#assign selected = 'class="selected" ' />
|
<#assign selected = 'class="selected" ' />
|
||||||
<#assign classGroupList>
|
<#assign classGroupList>
|
||||||
|
<section id="home-stats" class="home-sections" >
|
||||||
|
<h4>Statistics</h4>
|
||||||
|
<ul id="stats">
|
||||||
|
<#assign groupCount = 1>
|
||||||
<#list classGroups as group>
|
<#list classGroups as group>
|
||||||
|
<#if (groupCount > 6) >
|
||||||
|
<#break/>
|
||||||
|
</#if>
|
||||||
<#-- Only display populated class groups -->
|
<#-- Only display populated class groups -->
|
||||||
<#if (group.individualCount > 0)>
|
<#if (group.individualCount > 0)>
|
||||||
<#-- Catch the first populated class group. Will be used later as the default selected class group -->
|
<#-- Catch the first populated class group. Will be used later as the default selected class group -->
|
||||||
<#if !firstPopulatedClassGroup??>
|
<#if !firstPopulatedClassGroup??>
|
||||||
<#assign firstPopulatedClassGroup = group />
|
<#assign firstPopulatedClassGroup = group />
|
||||||
</#if>
|
</#if>
|
||||||
<#-- Determine the active (selected) group -->
|
<#if group.displayName != "equipment" && group.displayName != "courses" >
|
||||||
<#assign activeGroup = "" />
|
|
||||||
<#if !classGroup??>
|
|
||||||
<#if group_index == 0>
|
|
||||||
<#assign activeGroup = selected />
|
|
||||||
</#if>
|
|
||||||
<#elseif classGroup.uri == group.uri>
|
|
||||||
<#assign activeGroup = selected />
|
|
||||||
</#if>
|
|
||||||
<#if group.displayName != "equipment" && group.displayName != "locations" && group.displayName != "courses" >
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<p class="stats-count">
|
<p class="stats-count">
|
||||||
|
@ -50,16 +48,20 @@
|
||||||
<p class="stats-type">${group.displayName?capitalize}</p>
|
<p class="stats-type">${group.displayName?capitalize}</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<#assign groupCount = groupCount + 1>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
</#list>
|
</#list>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
<#-- Display the class group browse only if we have at least one populated class group -->
|
<#-- Display the class group browse only if we have at least one populated class group -->
|
||||||
<#if firstPopulatedClassGroup??>
|
<#if firstPopulatedClassGroup??>
|
||||||
${classGroupList}
|
${classGroupList}
|
||||||
<#else>
|
<#else>
|
||||||
<h3>There is currently no content in the system, or you need to create class groups and assign your classes to them.</h3>
|
<h3 id="noContentMsg">There is currently no content in the system, or you need to create class groups and assign your classes to them.</h3>
|
||||||
|
|
||||||
<#if user.loggedIn>
|
<#if user.loggedIn>
|
||||||
<#if user.hasSiteAdminAccess>
|
<#if user.hasSiteAdminAccess>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue