_project_menu.html.haml 1.29 KB
Newer Older
1
%nav.main_menu
2
  = link_to @project.code, project_path(@project), :class => "home #{project_tab_class}", :title => "Project"
3
  - if @project.repo_exists?
4
    - if can? current_user, :download_code, @project
5
      = link_to tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class do
6
        Files
7
      = link_to "Commits", project_commits_path(@project), :class => commit_tab_class
8 9 10

    = link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
    - if @project.issues_enabled
11
      = link_to  project_issues_filter_path(@project), :class => issues_tab? ? "current" : nil do
12
        Issues
13
        %span.count= @project.issues.opened.count
14 15 16
    - if @project.merge_requests_enabled
      = link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
        Merge Requests
17
        %span.count= @project.merge_requests.opened.count
18 19

    - if @project.wall_enabled
20
      = link_to wall_project_path(@project), :class => wall_tab? ? "current" : nil do
21
        Wall
22

Valery Sizov's avatar
Valery Sizov committed
23
    - if @project.wiki_enabled
Valery Sizov's avatar
Valery Sizov committed
24
      = link_to project_wiki_path(@project, :index), :class => (controller.controller_name == "wikis") ? "current" : nil do
Valery Sizov's avatar
Valery Sizov committed
25
        Wiki