Show
Ignore:
Timestamp:
16-11-10 18:48:08 (3 years ago)
Author:
work@…
Message:

- resolves issue #180

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/common/_topnav.gsp

    r1119 r1150  
    55      <a href="#">Studies</a> 
    66      <ul class="subnav"> 
    7         <li><g:link controller="study" action="list">View studies</g:link></li> 
    8                 <li><g:link controller="wizard" action="index">Create/edit study</g:link></li> 
     7            <sec:ifLoggedIn> 
     8                <li><g:link controller="study" action="myStudies">My studies</g:link></li> 
     9                <li><g:link controller="study" action="list">All studies</g:link></li> 
     10            </sec:ifLoggedIn> 
     11                <sec:ifNotLoggedIn> 
     12                <li><g:link controller="study" action="list">View studies</g:link></li> 
     13                </sec:ifNotLoggedIn> 
     14                <li><g:link controller="wizard" action="index" params="[jump:'create']">Create a new study</g:link></li> 
     15                <li><g:link controller="wizard" action="index" params="[jump:'edit']">Edit a study</g:link></li> 
    916                <li><g:link controller="importer" action="index">Import study data</g:link></li> 
    1017        <li><g:link controller="simpleQuery" action="index">Search study data</g:link></li> 
    1118        <li><g:link controller="exporter" action="index">Export as SimpleTox</g:link></li> 
    12                 <sec:ifLoggedIn> 
    13                          <li><g:link controller="study" action="myStudies">My studies</g:link></li> 
    14                 </sec:ifLoggedIn> 
    1519      </ul> 
    1620     </li>