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

Last change on this file since 561 was 561, checked in by keesvb, 11 years ago

version 0.3.0: fixed some issues with updating boolean fields, changed events in the bootstrap, restructured menus

  • Property svn:keywords set to Date Author Rev
File size: 2.5 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/edit study</g:link></li>
12                  <li><g:link controller="importer" action="index">Import study data</g:link></li>
13      </ul>
14     </li>
15     <li>
16      <a href="#">Contacts</a>
17      <ul class="subnav">
18        <li><g:link controller="person" action="list">View persons</g:link></li>
19        <li><g:link controller="personAffiliation" action="list">View affiliations</g:link></li>
20        <li><g:link controller="personRole" action="list">View roles</g:link></li>
21      </ul>
22     </li>
23    <li>
24    <a href="#">Publications</a>
25    <ul class="subnav">
26      <li><g:link controller="publication" action="list">View publications</g:link></li>
27      <li><g:link controller="publication" action="add">Add publication</g:link></li>
28    </ul>
29   </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.