Commit 1c5dfa0f authored by gubala's avatar gubala

test of additional menu for prom

parent 36637275
......@@ -82,4 +82,7 @@ class User < ActiveRecord::Base
name + ' ' + surname
end
def beta?
login == 'plggubala'
end
end
......@@ -4,7 +4,7 @@
.container
%footer
%p
Copyright &copy; 2013-2015
Copyright &copy; 2013-2016
= link_to t(:author), footer_link('cyfronet')
= t :reserved
%a(href='ticket_to')= t :contact
......
......@@ -14,7 +14,7 @@
%li.dropdown
%a.navbar-btn.dropdown-toggle(href="#" data-toggle="dropdown")
= t 'folder_shortcuts'
= t('folder_shortcuts') + ' Zeus'
%b.caret
%ul.dropdown-menu
%li
......@@ -27,6 +27,22 @@
%li
= link_to user_team.name, folder_path(path: "/mnt/gpfs/work/plgrid/groups/#{user_team.shortname}/")
- if current_user.beta?
%li.dropdown
%a.navbar-btn.dropdown-toggle(href="#" data-toggle="dropdown")
= t('folder_shortcuts') + ' Prometheus'
%b.caret
%ul.dropdown-menu
%li
= link_to 'Home', folder_path(path: "/prometheus/net/people/#{current_user.login}/")
-#%li
-# = link_to 'Storage', folder_path(path: "/prometheus/mnt/gpfs/work/people/#{current_user.login}/")
%li
= link_to 'Scratch', folder_path(path: "/prometheus/net/scratch/people/#{current_user.login}/")
- current_user.user_teams.each do |user_team|
%li
= link_to user_team.name, folder_path(path: "/prometheus/net/archive/groups/#{user_team.shortname}/")
- else
%p.navbar-text= t 'leadline'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment