36 lines
1.5 KiB
Text
36 lines
1.5 KiB
Text
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
|
.comment-toolbar.clearfix
|
|
.toolbar-text
|
|
= link_to _('Markdown'), help_page_path('user/markdown'), target: '_blank', tabindex: -1
|
|
- if supports_quick_actions
|
|
and
|
|
= link_to _('quick actions'), help_page_path('user/project/quick_actions'), target: '_blank', tabindex: -1
|
|
are
|
|
- else
|
|
is
|
|
supported
|
|
|
|
%span.uploading-container
|
|
%span.uploading-progress-container.hide
|
|
= 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')
|
|
|
|
%span.uploading-error-container.hide
|
|
%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.btn-link{ type: 'button', tabindex: '-1' }
|
|
= icon('file-image-o', class: 'toolbar-button-icon')
|
|
%span.text-attach-file<>
|
|
= _("Attach a file")
|
|
|
|
%button.btn.btn-default.btn-sm.hide.button-cancel-uploading-files{ type: 'button' }= _("Cancel")
|