2015-12-23 02:04:40 +05:30
|
|
|
.file-holder.file.append-bottom-default
|
|
|
|
.file-title.clearfix
|
2015-04-26 12:48:37 +05:30
|
|
|
.editor-ref
|
2015-12-23 02:04:40 +05:30
|
|
|
= icon('code-fork')
|
2015-04-26 12:48:37 +05:30
|
|
|
= ref
|
|
|
|
%span.editor-file-name
|
2016-08-24 12:49:21 +05:30
|
|
|
- if current_action?(:edit) || current_action?(:update)
|
|
|
|
= text_field_tag 'file_path', (params[:file_path] || @path),
|
|
|
|
class: 'form-control new-file-path'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
- if current_action?(:new) || current_action?(:create)
|
|
|
|
%span.editor-file-name
|
2015-04-26 12:48:37 +05:30
|
|
|
\/
|
2015-12-23 02:04:40 +05:30
|
|
|
= text_field_tag 'file_name', params[:file_name], placeholder: "File name",
|
2016-06-02 11:05:42 +05:30
|
|
|
required: true, class: 'form-control new-file-name'
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
.pull-right
|
2016-06-22 15:30:34 +05:30
|
|
|
.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 } } )
|
|
|
|
.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-06-02 11:05:42 +05:30
|
|
|
.encoding-selector
|
|
|
|
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'select2'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
.file-editor.code
|
2015-12-23 02:04:40 +05:30
|
|
|
%pre.js-edit-mode-pane#editor #{params[:content] || local_assigns[:blob_data]}
|
2015-04-26 12:48:37 +05:30
|
|
|
- if local_assigns[:path]
|
|
|
|
.js-edit-mode-pane#preview.hide
|
|
|
|
.center
|
|
|
|
%h2
|
|
|
|
%i.icon-spinner.icon-spin
|