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-09-26 05:33:42 +02:00
|
|
|
= link_to project_commits_path(@project, branch.name) do
|
2012-10-26 18:00:09 +02:00
|
|
|
- if @project.protected_branch? branch.name
|
|
|
|
%i.icon-lock
|
|
|
|
- else
|
|
|
|
%i.icon-unlock
|
2012-08-11 00:07:50 +02:00
|
|
|
%strong= truncate(branch.name, length: 60)
|
2013-01-03 20:09:18 +01:00
|
|
|
- if branch.name == @repository.root_ref
|
2012-02-20 07:39:03 +01:00
|
|
|
%span.label default
|
|
|
|
%td
|
2012-10-26 18:00:09 +02:00
|
|
|
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
|
|
|
|
= commit.short_id
|
|
|
|
= image_tag gravatar_icon(commit.author_email), class: "avatar s16"
|
|
|
|
%span.light
|
|
|
|
= gfm escape_once(truncate(commit.title, length: 40))
|
|
|
|
%span
|
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-10-26 18:00:09 +02:00
|
|
|
= link_to archive_project_repository_path(@project, ref: branch.name) do
|
2013-01-08 06:14:05 +01:00
|
|
|
%i.icon-download-alt
|
2012-10-26 18:00:09 +02:00
|
|
|
Download
|
2012-02-20 07:39:03 +01:00
|
|
|
|