2017-05-31 05:50:53 +00:00
|
|
|
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
2016-03-30 09:00:43 +00:00
|
|
|
.comment-toolbar.clearfix
|
|
|
|
.toolbar-text
|
2019-08-01 17:31:13 +00:00
|
|
|
= link_to _('Markdown'), help_page_path('user/markdown'), target: '_blank', tabindex: -1
|
2017-05-31 05:50:53 +00:00
|
|
|
- if supports_quick_actions
|
2019-08-01 17:31:13 +00:00
|
|
|
and
|
|
|
|
= link_to _('quick actions'), help_page_path('user/project/quick_actions'), target: '_blank', tabindex: -1
|
|
|
|
are
|
2016-08-13 01:19:52 +00:00
|
|
|
- else
|
2019-08-01 17:31:13 +00:00
|
|
|
is
|
|
|
|
supported
|
2017-05-16 08:52:17 +00:00
|
|
|
|
|
|
|
%span.uploading-container
|
2018-04-20 16:24:05 +00:00
|
|
|
%span.uploading-progress-container.hide
|
2017-05-16 08:52:17 +00:00
|
|
|
= icon('file-image-o', class: 'toolbar-button-icon')
|
|
|
|
%span.attaching-file-message
|
|
|
|
-# Populated by app/assets/javascripts/dropzone_input.js
|
|
|
|
%span.uploading-progress 0%
|
|
|
|
%span.uploading-spinner
|
2020-03-23 09:09:42 +00:00
|
|
|
.toolbar-button-icon.spinner.align-text-top
|
2017-05-16 08:52:17 +00:00
|
|
|
|
2018-04-20 16:24:05 +00:00
|
|
|
%span.uploading-error-container.hide
|
2017-05-16 08:52:17 +00:00
|
|
|
%span.uploading-error-icon
|
|
|
|
= icon('file-image-o', class: 'toolbar-button-icon')
|
|
|
|
%span.uploading-error-message
|
|
|
|
-# Populated by app/assets/javascripts/dropzone_input.js
|
2019-01-07 20:08:19 +00:00
|
|
|
%button.retry-uploading-link{ type: 'button' }= _("Try again")
|
2017-05-16 08:52:17 +00:00
|
|
|
or
|
2019-01-07 20:08:19 +00:00
|
|
|
%button.attach-new-file.markdown-selector{ type: 'button' }= _("attach a new file")
|
2017-05-16 08:52:17 +00:00
|
|
|
|
2019-05-31 19:56:38 +00:00
|
|
|
%button.markdown-selector.button-attach-file.btn-link{ type: 'button', tabindex: '-1' }
|
2017-05-16 08:52:17 +00:00
|
|
|
= icon('file-image-o', class: 'toolbar-button-icon')
|
2019-05-31 19:56:38 +00:00
|
|
|
%span.text-attach-file<>
|
|
|
|
= _("Attach a file")
|
2017-05-16 08:52:17 +00:00
|
|
|
|
2019-01-07 20:08:19 +00:00
|
|
|
%button.btn.btn-default.btn-sm.hide.button-cancel-uploading-files{ type: 'button' }= _("Cancel")
|