Issues, Merge Requests counters

This commit is contained in:
Dmitriy Zaporozhets 2012-02-19 21:30:31 +02:00
parent df27ec29f3
commit 635d3e09b7
4 changed files with 27 additions and 13 deletions

View file

@ -1,6 +1,6 @@
%li.wll.commit
.right.span2
= link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small right"
= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "btn small right"
= link_to project_commit_path(@project, :id => commit.id) do
%p
%code.left= commit.id.to_s[0..10]
@ -12,4 +12,5 @@
%span.right.cgray
= time_ago_in_words(commit.committed_date)
ago
 

View file

@ -10,10 +10,13 @@
= link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
- if @project.issues_enabled
= link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
Issues
Issues
%span.count= @project.issues.opened.count
- if @project.merge_requests_enabled
= link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
Merge Requests
%span.count= @project.issues.opened.count
- if @project.wall_enabled
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do