gitlabhq/app/views/repositories/_branch.html.haml

22 lines
774 B
Text
Raw Normal View History

2012-07-22 13:08:24 +02:00
- commit = Commit.new(branch.commit)
- commit = CommitDecorator.decorate(commit)
%tr
%td
2012-09-26 05:33:42 +02:00
= link_to project_commits_path(@project, branch.name) do
%strong= truncate(branch.name, length: 60)
- if branch.name == @project.root_ref
%span.label default
%td
= link_to project_commit_path(@project, commit) do
2012-07-22 13:08:24 +02:00
%code= commit.short_id
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
2012-09-20 02:21:12 +02:00
= gfm escape_once(truncate(commit.title, length: 40))
%span.update-author.right
2012-07-22 13:08:24 +02:00
= time_ago_in_words(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"