]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Added a few tests
[rails.git] / app / views / layouts / _header.html.erb
index a8811c6c9c39ff27842ba803faef9aa651fb5036..29216de72e27ef128742bcb7ee46dbeb9442e4e2 100644 (file)
@@ -38,6 +38,9 @@
   </nav>
   <nav class='secondary'>
     <ul>
+      <% if @user and ( @user.administrator? or @user.moderator? ) %>
+        <li class="compact-hide <%= current_page_class(issues_path) %>"><%= link_to t('layouts.issues'), issues_path %></li>
+      <% end %>
       <li class="compact-hide <%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>
       <li class="compact-hide <%= current_page_class(diary_path) %>"><%= link_to t('layouts.user_diaries'), diary_path %></li>
       <li class="compact-hide <%= current_page_class(copyright_path) %>"><%= link_to t('layouts.copyright'), copyright_path %></li>