debian-mirror-gitlab/app/views/shared/notes/_hints.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
2.3 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
2021-11-18 22:05:49 +05:30
- supports_file_upload = local_assigns.fetch(:supports_file_upload, true)
2016-06-02 11:05:42 +05:30
.comment-toolbar.clearfix
.toolbar-text
2022-07-16 23:28:13 +05:30
- 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-09-10 17:25:29 +05:30
- if supports_quick_actions
2022-07-16 23:28:13 +05:30
= 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-09-13 17:45:13 +05:30
- else
2022-07-16 23:28:13 +05:30
= html_escape(s_('MarkdownToolbar|Supports %{markdownDocsLinkStart}Markdown%{markdownDocsLinkEnd}')) % { markdownDocsLinkStart: markdownLinkStart, markdownDocsLinkEnd: '</a>'.html_safe }
2021-11-18 22:05:49 +05:30
- if supports_file_upload
2022-10-11 01:57:18 +05:30
%span.uploading-container.gl-line-height-32
2021-11-18 22:05:49 +05:30
%span.uploading-progress-container.hide
2022-08-27 11:52:29 +05:30
= sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
2021-11-18 22:05:49 +05:30
%span.attaching-file-message
-# Populated by app/assets/javascripts/dropzone_input.js
%span.uploading-progress 0%
2022-05-07 20:08:51 +05:30
= gl_loading_icon(inline: true, css_class: 'gl-mr-2')
2017-09-10 17:25:29 +05:30
2021-11-18 22:05:49 +05:30
%span.uploading-error-container.hide
%span.uploading-error-icon
2022-08-27 11:52:29 +05:30
= sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
2021-11-18 22:05:49 +05:30
%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-09-10 17:25:29 +05:30
2021-11-18 22:05:49 +05:30
%button.btn.gl-button.btn-link.button-cancel-uploading-files.gl-vertical-align-baseline.hide
%span.gl-button-text
= _("Cancel")