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

Last change on this file since 290 was 290, checked in by keesvb, 13 years ago

debugged EventDescription?.save, added comment field for template fields, add code comments to setFieldValue, added missing events to PPSH demo in BootStrap?, cleaned up home menu, re-added searchable

  • Property svn:keywords set to Author Rev Date
File size: 2.1 KB
Line 
1
2    <!-- TOPNAV //-->
3    <ul class="topnav">
4     <li><g:link url="/${meta(name: 'app.name')}/">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="#">Events</a>
16      <ul class="subnav">
17        <li><g:link controller="protocol" action="list">View protocols</g:link></li>
18        <li><g:link controller="eventDescription" action="list">View event descriptions</g:link></li>
19      </ul>
20     </li>
21         <li><g:link controller="importer" action="index">Import data</g:link></li>
22    <g:if env="development">
23     <li><g:link controller="query" action="index">Query database</g:link></li>
24         <li>
25          <a href="#">Scaffolded controllers</a>
26          <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
27           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
28          </ul>
29     </li>
30        </g:if>
31<n:isAdministrator>
32     <li>
33          <a href="#">User administation</a>
34          <ul class="subnav">
35            <li><g:link controller="admins" action="index" class="icon icon_user_suit">Manage Administrators</g:link></li>
36            <li><g:link controller="user" action="list" class="icon icon_user">List Users</g:link></li>
37            <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
38            <li><g:link controller="role" action="list" class="icon icon_cog">List Roles</g:link></li>
39            <li><g:link controller="role" action="create" class="icon icon_cog_add">Create Role</g:link></li>
40            <li><g:link controller="group" action="list" class="icon icon_group">List Groups</g:link></li>
41            <li><g:link controller="group" action="create" class="icon icon_group_add">Create Group</g:link></li>
42            <li><g:link controller="auth" action="logout" class="icon icon_cross">Sign out</g:link></li>
43          </ul>
44     </li>
45</n:isAdministrator>
46    </ul>
47    <!-- /TOPNAV //-->
Note: See TracBrowser for help on using the repository browser.