2012-07-22 13:08:24 +02:00
|
|
|
- commit = Commit.new(branch.commit)
|
|
|
|
- commit = CommitDecorator.decorate(commit)
|
2012-02-20 07:39:03 +01:00
|
|
|
%tr
|
|
|
|
%td
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to project_commits_path(@project, ref: branch.name) do
|
|
|
|
%strong= truncate(branch.name, length: 60)
|
2012-02-20 07:39:03 +01:00
|
|
|
- if branch.name == @project.root_ref
|
|
|
|
%span.label default
|
|
|
|
%td
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to project_commit_path(@project, id: commit.id) do
|
2012-07-22 13:08:24 +02:00
|
|
|
%code= commit.short_id
|
2012-02-20 07:39:03 +01:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
|
|
|
|
= gfm truncate(commit.title, length: 40)
|
2012-02-20 07:39:03 +01:00
|
|
|
%span.update-author.right
|
2012-07-22 13:08:24 +02:00
|
|
|
= time_ago_in_words(commit.committed_date)
|
2012-02-20 07:39:03 +01:00
|
|
|
ago
|
|
|
|
%td
|
|
|
|
- if can? current_user, :download_code, @project
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to "Download", archive_project_repository_path(@project, ref: branch.name), class: "visible_link download_repo_link"
|
2012-02-20 07:39:03 +01:00
|
|
|
|