Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_top_menu.html.haml')
-rw-r--r--app/views/projects/_top_menu.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/_top_menu.html.haml b/app/views/projects/_top_menu.html.haml
index b81ba6bb4d6..fe4b72da681 100644
--- a/app/views/projects/_top_menu.html.haml
+++ b/app/views/projects/_top_menu.html.haml
@@ -18,6 +18,11 @@
Wall
- if @project.common_notes.count > 0
%span{ :class => "top_menu_count" }= @project.common_notes.count
+ %span
+ = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
+ Snippets
+ - if @project.snippets.count > 0
+ %span{ :class => "top_menu_count" }= @project.snippets.count
- if @commit
%span= link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil