Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_hints.html.haml « notes « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23ce38d50e047085f4deeb8df87f9f44b9df3d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- supports_file_upload = local_assigns.fetch(:supports_file_upload, true)
.comment-toolbar.gl-px-2.gl-display-flex.gl-justify-content-end.gl-rounded-bottom-left-base.gl-rounded-bottom-right-base.clearfix
  .content-editor-switcher.gl-display-inline-flex.gl-align-items-center
    = render Pajamas::ButtonComponent.new(category: :tertiary, icon: 'markdown-mark', size: :small, href: help_page_path('user/markdown'), target: '_blank', button_options: { class: 'gl-px-3!' })
  - if supports_file_upload
    %span.uploading-container.gl-line-height-32.gl-font-sm
      %span.uploading-progress-container.hide
        = sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
        %span.attaching-file-message
          -# Populated by app/assets/javascripts/dropzone_input.js
        %span.uploading-progress 0%
        = gl_loading_icon(inline: true, css_class: 'gl-mr-2')

      %span.uploading-error-container.hide
        %span.uploading-error-icon
          = sprite_icon('paperclip', css_class: 'gl-icon gl-vertical-align-text-bottom')
        %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")
        = _(".")

      %button.btn.gl-button.btn-link.button-cancel-uploading-files.gl-vertical-align-baseline.hide
        %span.gl-button-text
          = _("Cancel")