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

26 lines
993 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
- page_title "New File", @path.presence, @ref
= render "header_title"
.gray-content-block.top-block
2015-10-24 18:46:33 +05:30
Create a new file
2015-09-25 12:07:36 +05:30
2015-04-26 12:48:37 +05:30
.file-editor
2015-09-11 14:41:01 +05:30
= form_tag(namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'form-horizontal form-new-file js-requires-input') do
2015-04-26 12:48:37 +05:30
= render 'projects/blob/editor', ref: @ref
= render 'shared/commit_message_container', params: params,
placeholder: 'Add new file'
2015-09-25 12:07:36 +05:30
- unless @project.empty_repo?
.form-group.branch
= label_tag 'branch', class: 'control-label' do
Branch
.col-sm-10
2015-10-24 18:46:33 +05:30
= text_field_tag 'new_branch', @ref, class: "form-control js-quick-submit"
2015-04-26 12:48:37 +05:30
= hidden_field_tag 'content', '', id: 'file-content'
= render 'projects/commit_button', ref: @ref,
cancel_path: namespace_project_tree_path(@project.namespace, @project, @id)
:javascript
blob = new NewBlob(gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}", null)