mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Also License dropdown has been ported to use our GL dropdown instead of Select2. Fixes tests to make it work with current implementation
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
.file-holder.file.append-bottom-default
|
|
.file-title.clearfix
|
|
.editor-ref
|
|
= icon('code-fork')
|
|
= ref
|
|
%span.editor-file-name
|
|
= @path
|
|
|
|
- if current_action?(:new) || current_action?(:create)
|
|
%span.editor-file-name
|
|
\/
|
|
= text_field_tag 'file_name', params[:file_name], placeholder: "File name",
|
|
required: true, class: 'form-control new-file-name'
|
|
|
|
.pull-right
|
|
.license-selector.js-license-selector-wrap.hidden
|
|
= dropdown_tag("Choose a License template", options: { toggle_class: 'js-license-selector', title: "Choose a license", filter: true, placeholder: "Filter", data: { data: licenses_for_select, project: @project.name, fullname: @project.namespace.human_name } } )
|
|
.gitignore-selector.js-gitignore-selector-wrap.hidden
|
|
= dropdown_tag("Choose a .gitignore template", options: { toggle_class: 'js-gitignore-selector', title: "Choose a template", filter: true, placeholder: "Filter", data: { data: gitignore_names } } )
|
|
.encoding-selector
|
|
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'select2'
|
|
|
|
.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
|