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
|
2016-08-22 20:25:05 +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
|
2016-08-13 01:19:52 +00:00
|
|
|
and
|
2017-05-31 05:50:53 +00:00
|
|
|
= link_to 'quick actions', help_page_path('user/project/quick_actions'), target: '_blank', tabindex: -1
|
2016-08-13 01:19:52 +00:00
|
|
|
are
|
|
|
|
- else
|
|
|
|
is
|
|
|
|
supported
|
2017-05-16 08:52:17 +00:00
|
|
|
|
|
|
|
%span.uploading-container
|
2018-04-09 18:50:35 +00:00
|
|
|
%span.uploading-progress-container.d-none
|
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
|
|
|
|
= icon('spinner spin', class: 'toolbar-button-icon')
|
|
|
|
|
2018-04-09 18:50:35 +00:00
|
|
|
%span.uploading-error-container.d-none
|
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
|
|
|
|
%button.retry-uploading-link{ type: 'button' } Try again
|
|
|
|
or
|
|
|
|
%button.attach-new-file.markdown-selector{ type: 'button' } attach a new file
|
|
|
|
|
|
|
|
%button.markdown-selector.button-attach-file{ type: 'button', tabindex: '-1' }
|
|
|
|
= icon('file-image-o', class: 'toolbar-button-icon')
|
|
|
|
Attach a file
|
|
|
|
|
2018-04-12 21:13:36 +00:00
|
|
|
%button.btn.btn-secondary.btn-sm.d-none.button-cancel-uploading-files{ type: 'button' } Cancel
|