2015-12-02 08:47:19 -05:00
|
|
|
.file-holder.file.append-bottom-default
|
|
|
|
.file-title.clearfix
|
2015-01-26 23:57:42 -05:00
|
|
|
.editor-ref
|
2015-12-02 08:47:19 -05:00
|
|
|
= icon('code-fork')
|
2015-01-26 23:57:42 -05:00
|
|
|
= ref
|
|
|
|
%span.editor-file-name
|
2015-12-02 08:47:19 -05:00
|
|
|
= @path
|
2015-01-26 23:57:42 -05:00
|
|
|
|
2015-12-02 08:47:19 -05:00
|
|
|
- if current_action?(:new) || current_action?(:create)
|
|
|
|
%span.editor-file-name
|
2015-01-26 23:57:42 -05:00
|
|
|
\/
|
2015-12-02 08:47:19 -05:00
|
|
|
= text_field_tag 'file_name', params[:file_name], placeholder: "File name",
|
2016-02-12 16:28:53 -05:00
|
|
|
required: true, class: 'form-control new-file-name'
|
2015-12-02 08:47:19 -05:00
|
|
|
|
|
|
|
.pull-right
|
2016-03-01 07:36:50 -05:00
|
|
|
.license-selector.js-license-selector.hide
|
2016-04-11 09:49:25 -04:00
|
|
|
= select_tag :license_type, grouped_options_for_select(licenses_for_select, @project.repository.license_key), include_blank: true, class: 'select2 license-select', data: {placeholder: 'Choose a license template', project: @project.name, fullname: @project.namespace.human_name}
|
2016-03-01 07:36:50 -05:00
|
|
|
|
|
|
|
.encoding-selector
|
|
|
|
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'select2'
|
2015-01-26 23:57:42 -05:00
|
|
|
|
|
|
|
.file-content.code
|
2015-12-14 15:14:07 -05:00
|
|
|
%pre.js-edit-mode-pane#editor #{params[:content] || local_assigns[:blob_data]}
|
2015-01-26 23:57:42 -05:00
|
|
|
- if local_assigns[:path]
|
|
|
|
.js-edit-mode-pane#preview.hide
|
|
|
|
.center
|
|
|
|
%h2
|
|
|
|
%i.icon-spinner.icon-spin
|