.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

.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

Allow base64 for edit blobs
Allow base64 for edit blobs

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
