Commit 05993f90e0cfc3a0e571b2eaa3b4b182a19e979f
1 parent
0ebc610e
Exists in
master
and in
4 other branches
removed tags from repo activities
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/repository.rb
| @@ -113,7 +113,7 @@ class Repository | @@ -113,7 +113,7 @@ class Repository | ||
| 113 | end | 113 | end |
| 114 | 114 | ||
| 115 | def commits_with_refs(n = 20) | 115 | def commits_with_refs(n = 20) |
| 116 | - commits = repo.refs.map { |ref| Commit.new(ref.commit, ref) } | 116 | + commits = repo.branches.map { |ref| Commit.new(ref.commit, ref) } |
| 117 | 117 | ||
| 118 | commits.sort! do |x, y| | 118 | commits.sort! do |x, y| |
| 119 | y.committed_date <=> x.committed_date | 119 | y.committed_date <=> x.committed_date |
app/views/repositories/_head.html.haml
| 1 | .merge-tabs.repository | 1 | .merge-tabs.repository |
| 2 | = link_to project_repository_path(@project), :class => "activities-tab tab #{'active' if current_page?(project_repository_path(@project)) }" do | 2 | = link_to project_repository_path(@project), :class => "activities-tab tab #{'active' if current_page?(project_repository_path(@project)) }" do |
| 3 | %span | 3 | %span |
| 4 | - History | 4 | + Activities |
| 5 | = link_to branches_project_repository_path(@project), :class => "tab #{'active' if current_page?(branches_project_repository_path(@project)) }" do | 5 | = link_to branches_project_repository_path(@project), :class => "tab #{'active' if current_page?(branches_project_repository_path(@project)) }" do |
| 6 | %span | 6 | %span |
| 7 | Branches | 7 | Branches |