2012-02-20 01:39:03 -05: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
|
2012-02-24 10:27:44 -05:00
|
|
|
= link_to project_commit_path(@project, branch.commit.id) do
|
2012-02-20 01:39:03 -05:00
|
|
|
%code= branch.commit.id.to_s[0..10]
|
|
|
|
|
|
|
|
= image_tag gravatar_icon(Commit.new(branch.commit).author_email), :class => "", :width => 16
|
|
|
|
= truncate(Commit.new(branch.commit).safe_message, :length => 40)
|
|
|
|
%td
|
|
|
|
%span.update-author.right
|
|
|
|
= time_ago_in_words(branch.commit.committed_date)
|
|
|
|
ago
|
|
|
|
%td
|
|
|
|
- if can? current_user, :download_code, @project
|
|
|
|
= link_to "Download", archive_project_repository_path(@project, :ref => branch.name), :class => "visible_link download_repo_link"
|
|
|
|
|