hide admin link for users

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 23:08:11 +02:00
parent 5c2e89b279
commit a1385d11ac

View file

@ -8,6 +8,7 @@
%h1 %h1
GITLAB GITLAB
- if current_user.is_admin?
= link_to admin_projects_path, :class => "admin_link", :title => "Admin area" do = link_to admin_projects_path, :class => "admin_link", :title => "Admin area" do
= image_tag "admin.PNG", :width => 16 = image_tag "admin.PNG", :width => 16