debian-mirror-gitlab/app/views/projects/blob/_editor.html.haml

32 lines
1.3 KiB
Text
Raw Normal View History

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
2015-12-23 02:04:40 +05:30
= @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-02 11:05:42 +05:30
.license-selector.js-license-selector.hide
= 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}
.gitignore-selector.hidden
= dropdown_tag("Choose a .gitignore template", options: { toggle_class: 'js-gitignore-selector', title: "Choose a template", filter: true, placeholder: "Filter", data: { filenames: gitignore_names } } )
.encoding-selector
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'select2'
2015-04-26 12:48:37 +05:30
.file-content.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