2017-05-31 01:50:53 -04:00
|
|
|
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
2021-10-13 05:11:55 -04:00
|
|
|
- supports_file_upload = local_assigns.fetch(:supports_file_upload, true)
|
2016-03-30 05:00:43 -04:00
|
|
|
.comment-toolbar.clearfix
|
|
|
|
.toolbar-text
|
2022-05-17 08:08:06 -04:00
|
|
|
- markdownLinkStart = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/markdown') }
|
|
|
|
- quickActionsLinkStart = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/quick_actions') }
|
2017-05-31 01:50:53 -04:00
|
|
|
- if supports_quick_actions
|
2022-05-17 08:08:06 -04:00
|
|
|
= html_escape(s_('NoteToolbar|Supports %{markdownDocsLinkStart}Markdown%{markdownDocsLinkEnd}. For %{quickActionsDocsLinkStart}quick actions%{quickActionsDocsLinkEnd}, type %{keyboardStart}/%{keyboardEnd}.')) % { markdownDocsLinkStart: markdownLinkStart, markdownDocsLinkEnd: '</a>'.html_safe, quickActionsDocsLinkStart: quickActionsLinkStart, quickActionsDocsLinkEnd: '</a>'.html_safe, keyboardStart: '<kbd>'.html_safe, keyboardEnd: '</kbd>'.html_safe }
|
2016-08-12 21:19:52 -04:00
|
|
|
- else
|
2022-05-17 08:08:06 -04:00
|
|
|
= html_escape(s_('MarkdownToolbar|Supports %{markdownDocsLinkStart}Markdown%{markdownDocsLinkEnd}')) % { markdownDocsLinkStart: markdownLinkStart, markdownDocsLinkEnd: '</a>'.html_safe }
|
2021-10-13 05:11:55 -04:00
|
|
|
- if supports_file_upload
|
2022-09-01 05:12:28 -04:00
|
|
|
%span.uploading-container.gl-line-height-32
|
2021-10-13 05:11:55 -04:00
|
|
|
%span.uploading-progress-container.hide
|
2022-07-26 05:09:02 -04:00
|
|
|
= sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
|
2021-10-13 05:11:55 -04:00
|
|
|
%span.attaching-file-message
|
|
|
|
-# Populated by app/assets/javascripts/dropzone_input.js
|
|
|
|
%span.uploading-progress 0%
|
2022-03-04 07:13:07 -05:00
|
|
|
= gl_loading_icon(inline: true, css_class: 'gl-mr-2')
|
2017-05-16 04:52:17 -04:00
|
|
|
|
2021-10-13 05:11:55 -04:00
|
|
|
%span.uploading-error-container.hide
|
|
|
|
%span.uploading-error-icon
|
2022-07-26 05:09:02 -04:00
|
|
|
= sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
|
2021-10-13 05:11:55 -04:00
|
|
|
%span.uploading-error-message
|
|
|
|
-# Populated by app/assets/javascripts/dropzone_input.js
|
|
|
|
%button.btn.gl-button.btn-link.gl-vertical-align-baseline.retry-uploading-link
|
|
|
|
%span.gl-button-text
|
|
|
|
= _("Try again")
|
|
|
|
= _("or")
|
|
|
|
%button.btn.gl-button.btn-link.attach-new-file.markdown-selector.gl-vertical-align-baseline
|
|
|
|
%span.gl-button-text
|
|
|
|
= _("attach a new file")
|
|
|
|
= _(".")
|
2017-05-16 04:52:17 -04:00
|
|
|
|
2021-10-13 05:11:55 -04:00
|
|
|
%button.btn.gl-button.btn-link.button-cancel-uploading-files.gl-vertical-align-baseline.hide
|
|
|
|
%span.gl-button-text
|
|
|
|
= _("Cancel")
|