Commit 9465090e authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'fox-comment-icons-commits' into 'master'

Use sprite_icon for comment icons on Commits

See merge request gitlab-org/gitlab!31696
parents 3a77828c e0570708
...@@ -61,8 +61,8 @@ module NotesHelper ...@@ -61,8 +61,8 @@ module NotesHelper
class: 'add-diff-note js-add-diff-note-button', class: 'add-diff-note js-add-diff-note-button',
type: 'submit', name: 'button', type: 'submit', name: 'button',
data: diff_view_line_data(line_code, position, line_type), data: diff_view_line_data(line_code, position, line_type),
title: 'Add a comment to this line' do title: _('Add a comment to this line') do
icon('comment-o') sprite_icon('comment', size: 12)
end end
end end
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
.header-action-buttons .header-action-buttons
- if defined?(@notes_count) && @notes_count > 0 - if defined?(@notes_count) && @notes_count > 0
%span.btn.disabled.btn-grouped.d-none.d-sm-block.append-right-10 %span.btn.disabled.btn-grouped.d-none.d-sm-block.append-right-10.has-tooltip{ title: n_("%d comment on this commit", "%d comments on this commit", @notes_count) % @notes_count }
= icon('comment') = sprite_icon('comment')
= @notes_count = @notes_count
= link_to project_tree_path(@project, @commit), class: "btn btn-default append-right-10 d-none d-sm-none d-md-inline" do = link_to project_tree_path(@project, @commit), class: "btn btn-default append-right-10 d-none d-sm-none d-md-inline" do
#{ _('Browse files') } #{ _('Browse files') }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.file-actions.d-none.d-sm-block .file-actions.d-none.d-sm-block
- if blob&.readable_text? - if blob&.readable_text?
= link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip', title: _("Toggle comments for this file"), disabled: @diff_notes_disabled do = link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip', title: _("Toggle comments for this file"), disabled: @diff_notes_disabled do
= icon('comment') = sprite_icon('comment', size: 16)
\ \
- if editable_diff?(diff_file) - if editable_diff?(diff_file)
- link_opts = @merge_request.persisted? ? { from_merge_request_iid: @merge_request.iid } : {} - link_opts = @merge_request.persisted? ? { from_merge_request_iid: @merge_request.iid } : {}
......
---
title: Use sprites for comment icons on Commits
merge_request: 31696
author:
type: changed
...@@ -96,6 +96,11 @@ msgid_plural "%d comments" ...@@ -96,6 +96,11 @@ msgid_plural "%d comments"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "%d comment on this commit"
msgid_plural "%d comments on this commit"
msgstr[0] ""
msgstr[1] ""
msgid "%d commit" msgid "%d commit"
msgid_plural "%d commits" msgid_plural "%d commits"
msgstr[0] "" msgstr[0] ""
...@@ -1218,6 +1223,9 @@ msgstr "" ...@@ -1218,6 +1223,9 @@ msgstr ""
msgid "Add a bullet list" msgid "Add a bullet list"
msgstr "" msgstr ""
msgid "Add a comment to this line"
msgstr ""
msgid "Add a general comment to this %{noteableDisplayName}." msgid "Add a general comment to this %{noteableDisplayName}."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment