root/trunk/grails-app/views/common/_topnav.gsp @ 959

Revision 959, 2.5 KB (checked in by j.a.m.wesbeek@…, 4 years ago)

- set keyword expansion

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