add link ti public area

This commit is contained in:
Dmitriy Zaporozhets 2013-03-04 20:11:23 +02:00
parent c2082f4d78
commit 24cc0faf2c
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,9 @@
%span.separator
%h1.project_name= title
%ul.nav
%li
= link_to public_root_path, title: "Public area", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
%i.icon-globe
- if current_user.is_admin?
%li
= link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do

View file

@ -12,5 +12,7 @@
.pull-right
%pre.dark.tiny git clone #{project.http_url_to_repo}
- unless @projects.present?
%h3.nothing_here_message No public projects
= paginate @projects, theme: "admin"