2015-12-02 13:47:19 +00:00
|
|
|
.file-holder.file.append-bottom-default
|
|
|
|
.file-title.clearfix
|
2015-01-27 04:57:42 +00:00
|
|
|
.editor-ref
|
2015-12-02 13:47:19 +00:00
|
|
|
= icon('code-fork')
|
2015-01-27 04:57:42 +00:00
|
|
|
= ref
|
|
|
|
%span.editor-file-name
|
2016-07-06 17:51:02 +00:00
|
|
|
- if current_action?(:edit) || current_action?(:update)
|
2016-07-13 10:19:14 +00:00
|
|
|
= text_field_tag 'file_path', (params[:file_path] || @path),
|
|
|
|
class: 'form-control new-file-path'
|
2015-01-27 04:57:42 +00:00
|
|
|
|
2015-12-02 13:47:19 +00:00
|
|
|
- if current_action?(:new) || current_action?(:create)
|
|
|
|
%span.editor-file-name
|
2015-01-27 04:57:42 +00:00
|
|
|
\/
|
2015-12-02 13:47:19 +00:00
|
|
|
= text_field_tag 'file_name', params[:file_name], placeholder: "File name",
|
2016-02-12 21:28:53 +00:00
|
|
|
required: true, class: 'form-control new-file-name'
|
2015-12-02 13:47:19 +00:00
|
|
|
|
|
|
|
.pull-right
|
2016-06-15 07:12:42 +00:00
|
|
|
.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 } } )
|
2016-06-16 07:06:30 +00:00
|
|
|
.gitlab-ci-yml-selector.js-gitlab-ci-yml-selector-wrap.hidden
|
|
|
|
= dropdown_tag("Choose a GitLab CI Yaml template", options: { toggle_class: 'js-gitlab-ci-yml-selector', title: "Choose a template", filter: true, placeholder: "Filter", data: { data: gitlab_ci_ymls } } )
|
2016-09-02 18:42:42 +00:00
|
|
|
= button_tag class: 'soft-wrap-toggle btn', type: 'button' do
|
|
|
|
= custom_icon('icon_soft_wrap', klass: 'soft-wrap-icon')
|
|
|
|
= custom_icon('icon_no_wrap', klass: 'no-wrap-icon hidden')
|
|
|
|
%span Soft wrap
|
2016-03-01 12:36:50 +00:00
|
|
|
.encoding-selector
|
|
|
|
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'select2'
|
2015-01-27 04:57:42 +00:00
|
|
|
|
2016-07-05 12:52:20 +00:00
|
|
|
.file-editor.code
|
2015-12-14 20:14:07 +00:00
|
|
|
%pre.js-edit-mode-pane#editor #{params[:content] || local_assigns[:blob_data]}
|
2015-01-27 04:57:42 +00:00
|
|
|
- if local_assigns[:path]
|
|
|
|
.js-edit-mode-pane#preview.hide
|
|
|
|
.center
|
|
|
|
%h2
|
|
|
|
%i.icon-spinner.icon-spin
|