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

_editor.html.haml « blob « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 96f188e4aa7ab644487318d53faf2a021a4053b7 (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
.file-holder.file
  .file-title
    .editor-ref
      %i.fa.fa-code-fork
      = ref
    %span.editor-file-name
      - if @path
        %span.monospace
          = @path

      - if current_action?(:new) || current_action?(:create)
        \/
        = text_field_tag 'file_name', params[:file_name], placeholder: "File name",
          required: true, class: 'form-control new-file-name'
        .pull-right
          = select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'form-control'

  .file-content.code
    %pre.js-edit-mode-pane#editor
      = params[:content] || local_assigns[:blob_data]
    - if local_assigns[:path]
      .js-edit-mode-pane#preview.hide
        .center
          %h2
            %i.icon-spinner.icon-spin