2012-02-15 21:02:33 +01:00
|
|
|
= render "repositories/branches_head"
|
2011-12-31 12:12:10 +01:00
|
|
|
- unless @branches.empty?
|
2012-01-28 15:47:55 +01:00
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last commit
|
|
|
|
%tbody
|
2011-12-31 12:12:10 +01:00
|
|
|
- @branches.each do |branch|
|
2012-01-28 15:47:55 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= link_to project_commits_path(@project, :ref => branch.name) do
|
|
|
|
%strong= branch.name
|
|
|
|
- if branch.name == @project.root_ref
|
|
|
|
%span.label default
|
|
|
|
%td
|
|
|
|
= link_to project_commits_path(@project, branch.commit.id) do
|
|
|
|
= truncate branch.commit.id.to_s, :length => 10
|
|
|
|
= time_ago_in_words(branch.commit.committed_date)
|
|
|
|
ago
|