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

Last change on this file since 1029 was 1029, checked in by robert@…, 10 years ago

Compare templates view updated.

  • Property svn:keywords set to Author Date Rev
File size: 3.0 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>
8        <li>
9      <a href="#">Studies</a>
10      <ul class="subnav">
11        <li><g:link controller="study" action="list">View studies</g:link></li>
12                <li><g:link controller="wizard" action="index">Create/edit study</g:link></li>
13                <li><g:link controller="importer" action="index">Import study data</g:link></li>
14        <li><g:link controller="simpleQuery" action="index">Search study data</g:link></li>
15      <li><g:link controller="exporter" action="index">Export as SimpleTox</g:link></li>
16      </ul>
17     </li>
18        <li>
19      <a href="#">Templates</a>
20      <ul class="subnav">
21        <li><g:link controller="templateEditor" action="study" params="${[standalone: true]}">Study templates</g:link></li>
22        <li><g:link controller="templateEditor" action="subject" params="${[standalone: true]}">Subject templates</g:link></li>
23        <li><g:link controller="templateEditor" action="event" params="${[standalone: true]}">Event templates</g:link></li>
24        <li><g:link controller="templateEditor" action="samplingEvent" params="${[standalone: true]}">Sampling event templates</g:link></li>
25        <li><g:link controller="templateEditor" action="sample" params="${[standalone: true]}">Sample templates</g:link></li>
26        <li><g:link controller="templateEditor" action="assay" params="${[standalone: true]}">Assay templates</g:link></li>
27      </ul>
28     </li>
29     <li>
30      <a href="#">Contacts</a>
31      <ul class="subnav">
32        <li><g:link controller="person" action="list">View persons</g:link></li>
33        <li><g:link controller="personAffiliation" action="list">View affiliations</g:link></li>
34        <li><g:link controller="personRole" action="list">View roles</g:link></li>
35      </ul>
36     </li>
37    <li>
38    <a href="#">Publications</a>
39    <ul class="subnav">
40      <li><g:link controller="publication" action="list">View publications</g:link></li>
41      <li><g:link controller="publication" action="add">Add publication</g:link></li>
42    </ul>
43   </li>
44    <g:if env="development">
45     <li><g:link controller="query" action="index">Query database</g:link></li>
46         <li>
47          <a href="#">Scaffolded controllers</a>
48          <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}">
49           <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each>
50          </ul>
51     </li>
52        </g:if>
53   <sec:ifAllGranted roles="ROLE_ADMIN">
54     <li>
55          <a href="#">User administation</a>
56          <ul class="subnav">
57            <li><g:link controller="user" class="icon icon_user">List Users</g:link></li>
58            <li><g:link controller="user" action="create" class="icon icon_user_add">Create User</g:link></li>
59            <li><g:link controller="logout" class="icon icon_cross">Sign out</g:link></li>
60          </ul>
61     </li>
62   </sec:ifAllGranted>
63    </ul>
64    <!-- /TOPNAV //-->
Note: See TracBrowser for help on using the repository browser.