Skip to content
Snippets Groups Projects
Commit 7c91055e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix wiki editing

parent 0f5f0215
Branches
Tags
1 merge request!1Fix Links To Gitlab Cloud
= form_for [@project, @wiki] do |f| = form_for [@project, @wiki], method: @wiki.persisted? ? :put : :post do |f|
-if @wiki.errors.any? -if @wiki.errors.any?
#error_explanation #error_explanation
%h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:" %h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
Loading
@@ -25,11 +25,11 @@
Loading
@@ -25,11 +25,11 @@
.ui-box-bottom .ui-box-bottom
.control-group .control-group
= f.label :content = f.label :content
.controls= f.text_area :content, class: 'span8 js-gfm-input' .controls= f.text_area :content, class: 'span8 js-gfm-input', rows: 18
.ui-box-bottom .ui-box-bottom
.control-group .control-group
= f.label :commit_message = f.label :commit_message
.controls= f.text_field :message, class: 'span8' .controls= f.text_field :message, class: 'span8', rows: 18
.form-actions .form-actions
- if @wiki && @wiki.persisted? - if @wiki && @wiki.persisted?
= f.submit 'Save changes', class: "btn-save btn" = f.submit 'Save changes', class: "btn-save btn"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment