gitlab-org--gitlab-foss/app/views/repositories/branches.html.haml

21 lines
657 B
Plaintext
Raw Normal View History

= render "repositories/branches_head"
2011-12-31 11:12:10 +00:00
- unless @branches.empty?
2012-02-18 13:59:01 +00:00
%table.zebra-striped.borders
2012-01-28 14:47:55 +00:00
%thead
%tr
%th Name
%th Last commit
%tbody
2011-12-31 11:12:10 +00:00
- @branches.each do |branch|
2012-01-28 14:47:55 +00: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