Commit e29687552e375d324a153de077e0dbe7a4a5fd3c

Authored by Riyad Preukschas
1 parent 621c6b85

Fix link titles

app/views/notes/_form.html.haml
... ... @@ -7,9 +7,9 @@
7 7 = f.hidden_field :noteable_type
8 8  
9 9 .note_text_and_preview.js-toggler-container
10   - %a.js-note-preview-button.js-toggler-target.turn-off{ href: "javascript:;", data: {title: "Preview", url: preview_project_notes_path(@project)} }
  10 + %a.js-note-preview-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Preview", data: {url: preview_project_notes_path(@project)} }
11 11 %i.icon-eye-open
12   - %a.js-note-edit-button.js-toggler-target.turn-off{ href: "javascript:;", data: {title: "Edit"} }
  12 + %a.js-note-edit-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Edit" }
13 13 %i.icon-edit
14 14  
15 15 = f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on'
... ...
app/views/notes/_note.html.haml
... ... @@ -6,7 +6,7 @@
6 6 Link here
7 7  
8 8 - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
9   - = link_to project_note_path(@project, note), method: :delete, confirm: 'Are you sure?', remote: true, class: "danger js-note-delete" do
  9 + = link_to project_note_path(@project, note), title: "Remove comment", method: :delete, confirm: 'Are you sure?', remote: true, class: "danger js-note-delete" do
10 10 %i.icon-remove-circle
11 11 = image_tag gravatar_icon(note.author.email), class: "avatar s32"
12 12 = link_to note.author_name, project_team_member_path(@project, @project.team_member_by_id(note.author)), class: "note-author"
... ...