_project_side.html.haml 1.22 KB
Newer Older
1 2 3 4 5 6 7 8
.project-sidebar
  .fixed
    %aside
      = link_to project_path(@project), :class => project_tab_class do 
        Project

      - if @project.repo_exists?
        = link_to "Repository", project_repository_path(@project), :class => repository_tab_class
9
        = link_to "Code", tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class
10
        = link_to "Commits", project_commits_path(@project), :class => (controller.controller_name == "commits") ? "current" : nil
11 12 13
        = link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
        = link_to  project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
          Issues
14 15
        = link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
          Merge Requests
16
        = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
17
          @Wall
18 19
          - if @project.common_notes.today.count > 0
            %span.label= @project.common_notes.today.count