diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-18 15:33:30 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-18 15:33:30 +0400 |
commit | c29b49de668c4f6adc271516242249a9cec6e223 (patch) | |
tree | 1642a25ada15c3071fe147ca94083718069984a8 /app/views/projects/_top_menu.html.haml | |
parent | 5a5845e4908895ecb8ad60bfc964eaeecdcc43b2 (diff) |
project dashboard
Diffstat (limited to 'app/views/projects/_top_menu.html.haml')
-rw-r--r-- | app/views/projects/_top_menu.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/_top_menu.html.haml b/app/views/projects/_top_menu.html.haml index fe4b72da681..e281b93b287 100644 --- a/app/views/projects/_top_menu.html.haml +++ b/app/views/projects/_top_menu.html.haml @@ -1,7 +1,8 @@ %div.top_project_menu -#%span= link_to @project.code.capitalize, @project, :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil - if @project.repo_exists? - %span= link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) || current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil + %span= link_to image_tag("home.png", :width => 20), project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil + %span= link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil %span= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil %span = link_to team_project_path(@project), :class => current_page?(:controller => "projects", :action => "team", :id => @project) ? "current" : nil do |