Add link_title to CommitDecorator
This commit is contained in:
parent
8db2a59d0b
commit
40d619107f
2 changed files with 10 additions and 1 deletions
|
@ -100,7 +100,7 @@ module Gitlab
|
|||
|
||||
def reference_commit(identifier)
|
||||
if commit = @project.commit(identifier)
|
||||
link_to(identifier, project_commit_path(@project, id: commit.id), html_options.merge(title: "Commit: #{commit.author_name} - #{CommitDecorator.new(commit).title}", class: "gfm gfm-commit #{html_options[:class]}"))
|
||||
link_to(identifier, project_commit_path(@project, id: commit.id), html_options.merge(title: CommitDecorator.new(commit).link_title, class: "gfm gfm-commit #{html_options[:class]}"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue