source: trunk/grails-app/views/common/_topnav.gsp @ 482

Last change on this file since 482 was 482, checked in by keesvb, 12 years ago

solved compilation error, added relative date type, restructured menu's, changed topnav layout to also scrolldown on click on main buttons

  • Property svn:keywords set to Date Author Rev
File size: 2.4 KB
Line 
1
2    <!-- TOPNAV //-->
3    <ul class="topnav">
4     <li><g:link controller="home" action="index">Home</g:link></li>
5<n:isLoggedIn>
6     <li><g:link controller="study" action="list">My studies</g:link></li>
7</n:isLoggedIn>     <li>
8      <a href="#">Studies</a>
9      <ul class="subnav">
10        <li><g:link controller="study" action="list">View studies</g:link></li>
11        <li><g:link controller="wizard" action="index">Create study</g:link></li>
12      </ul>
13     </li>
14     <li>
15      <a href="#">Contacts</a>
16      <ul class="subnav">
17        <li><g:link controller="person" action="list">View persons</g:link></li>
18        <li><g:link controller="personAffiliation" action="list">View affiliations</g:link></li>
19        <li><g:link controller="personRole" action="list">View roles</g:link></li>
20      </ul>
21     </li>
22    <li>
23    <a href="#">Publications</a>
24    <ul class="subnav">
25      <li><g:link controller="publication" action="list">View publications</g:link></li>
26      <li><g:link controller="publication" action="add">Add publication</g:link></li>
27    </ul>
28   </li>
29         <li><g:link controller="importer" action="index">Import data</g:link></li>
30    <g:if env="development">
31     <li><g:link controller="query" action="index">Query database</g:link></li>
32         <li>
33          <a href="#">Scaffolded controllers</a>
34          <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
35           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
36          </ul>
37     </li>
38        </g:if>
39<n:isAdministrator>
40     <li>
41          <a href="#">User administation</a>
42          <ul class="subnav">
43            <li><g:link controller="admins" action="index" class="icon icon_user_suit">Manage Administrators</g:link></li>
44            <li><g:link controller="user" action="list" class="icon icon_user">List Users</g:link></li>
45            <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
46            <li><g:link controller="role" action="list" class="icon icon_cog">List Roles</g:link></li>
47            <li><g:link controller="role" action="create" class="icon icon_cog_add">Create Role</g:link></li>
48            <li><g:link controller="group" action="list" class="icon icon_group">List Groups</g:link></li>
49            <li><g:link controller="group" action="create" class="icon icon_group_add">Create Group</g:link></li>
50            <li><g:link controller="auth" action="logout" class="icon icon_cross">Sign out</g:link></li>
51          </ul>
52     </li>
53</n:isAdministrator>
54    </ul>
55    <!-- /TOPNAV //-->
Note: See TracBrowser for help on using the repository browser.