b389247c02
Commits#show (plural) is going to be for showing commit history on a specific path.
22 lines
779 B
Plaintext
22 lines
779 B
Plaintext
- commit = Commit.new(branch.commit)
|
|
- commit = CommitDecorator.decorate(commit)
|
|
%tr
|
|
%td
|
|
= link_to project_commits_path(@project, ref: 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
|
|
%code= commit.short_id
|
|
|
|
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
|
|
= gfm escape_once(truncate(commit.title, length: 40))
|
|
%span.update-author.right
|
|
= 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"
|
|
|