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

Last change on this file since 984 was 976, checked in by robert@…, 7 years ago

Authentication and authorization for studies is added, according to ticket 118

  • Property svn:keywords set to Author Date Rev
File size: 2.2 KB
Line 
1
2    <!-- TOPNAV //-->
3    <ul class="topnav">
4     <li><g:link controller="home" action="index">Home</g:link></li>
5<sec:ifLoggedIn>
6     <li><g:link controller="study" action="myStudies">My studies</g:link></li>
7</sec:ifLoggedIn>     <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   <sec:ifAllGranted roles="ROLE_ADMIN">
41     <li>
42          <a href="#">User administation</a>
43          <ul class="subnav">
44            <li><g:link controller="user" 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" 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="logout" class="icon icon_cross">Sign out</g:link></li>
49          </ul>
50     </li>
51   </sec:ifAllGranted>
52    </ul>
53    <!-- /TOPNAV //-->
Note: See TracBrowser for help on using the repository browser.