Merge branch 'todos-title-attr' into 'master'
Set link title for todos. Closes #14042 See merge request !3161
This commit is contained in:
commit
09494ff413
6 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@ module EventsHelper
|
|||
author = event.author
|
||||
|
||||
if author
|
||||
link_to author.name, user_path(author.username)
|
||||
link_to author.name, user_path(author.username), title: h(author.name)
|
||||
else
|
||||
event.author_name
|
||||
end
|
||||
|
@ -159,7 +159,7 @@ module EventsHelper
|
|||
link_to(
|
||||
namespace_project_commit_path(event.project.namespace, event.project,
|
||||
event.note_commit_id,
|
||||
anchor: dom_id(event.target)),
|
||||
anchor: dom_id(event.target), title: h(event.target_title)),
|
||||
class: "commit_short_id"
|
||||
) do
|
||||
"#{event.note_target_type} #{event.note_short_commit_id}"
|
||||
|
@ -167,7 +167,7 @@ module EventsHelper
|
|||
elsif event.note_project_snippet?
|
||||
link_to(namespace_project_snippet_path(event.project.namespace,
|
||||
event.project,
|
||||
event.note_target)) do
|
||||
event.note_target), title: h(event.project.name)) do
|
||||
"#{event.note_target_type} #{truncate event.note_target.to_reference}"
|
||||
end
|
||||
else
|
||||
|
|
|
@ -8,7 +8,7 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def link_to_project(project)
|
||||
link_to [project.namespace.becomes(Namespace), project] do
|
||||
link_to [project.namespace.becomes(Namespace), project], title: h(project.name) do
|
||||
title = content_tag(:span, project.name, class: 'project-name')
|
||||
|
||||
if project.namespace
|
||||
|
|
|
@ -16,7 +16,7 @@ module TodosHelper
|
|||
|
||||
def todo_target_link(todo)
|
||||
target = todo.target_type.titleize.downcase
|
||||
link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo)
|
||||
link_to "#{target} #{todo.target.to_reference}", todo_target_path(todo), { title: h(todo.target.title) }
|
||||
end
|
||||
|
||||
def todo_target_path(todo)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%li.commit
|
||||
.commit-row-title
|
||||
= link_to truncate_sha(commit[:id]), namespace_project_commit_path(project.namespace, project, commit[:id]), class: "commit_short_id", alt: ''
|
||||
= link_to truncate_sha(commit[:id]), namespace_project_commit_path(project.namespace, project, commit[:id]), class: "commit_short_id", alt: '', title: truncate_sha(commit[:id])
|
||||
·
|
||||
= markdown event_commit_title(commit[:message]), project: project, pipeline: :single_line
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.event-last-push
|
||||
.event-last-push-text
|
||||
%span You pushed to
|
||||
= link_to namespace_project_commits_path(event.project.namespace, event.project, event.ref_name) do
|
||||
= link_to namespace_project_commits_path(event.project.namespace, event.project, event.ref_name), title: h(event.project.name) do
|
||||
%strong= event.ref_name
|
||||
%span at
|
||||
%strong= link_to_project event.project
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%strong= event.ref_name
|
||||
- else
|
||||
%strong
|
||||
= link_to event.ref_name, namespace_project_commits_path(event.project.namespace, event.project, event.ref_name)
|
||||
= link_to event.ref_name, namespace_project_commits_path(event.project.namespace, event.project, event.ref_name), title: h(event.target_title)
|
||||
at
|
||||
= link_to_project event.project
|
||||
|
||||
|
|
Loading…
Reference in a new issue