Commit 24cc0faf2cecc5148082e6f36363c57a0bdf1a09
1 parent
c2082f4d
Exists in
master
and in
4 other branches
add link ti public area
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
app/views/layouts/_head_panel.html.haml
@@ -8,6 +8,9 @@ | @@ -8,6 +8,9 @@ | ||
8 | %span.separator | 8 | %span.separator |
9 | %h1.project_name= title | 9 | %h1.project_name= title |
10 | %ul.nav | 10 | %ul.nav |
11 | + %li | ||
12 | + = link_to public_root_path, title: "Public area", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do | ||
13 | + %i.icon-globe | ||
11 | - if current_user.is_admin? | 14 | - if current_user.is_admin? |
12 | %li | 15 | %li |
13 | = link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do | 16 | = link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do |
app/views/public/projects/index.html.haml
@@ -12,5 +12,7 @@ | @@ -12,5 +12,7 @@ | ||
12 | .pull-right | 12 | .pull-right |
13 | %pre.dark.tiny git clone #{project.http_url_to_repo} | 13 | %pre.dark.tiny git clone #{project.http_url_to_repo} |
14 | 14 | ||
15 | + - unless @projects.present? | ||
16 | + %h3.nothing_here_message No public projects | ||
15 | 17 | ||
16 | = paginate @projects, theme: "admin" | 18 | = paginate @projects, theme: "admin" |