2012-02-19 12:05:35 -05:00
|
|
|
= form_for [@project, @wiki] do |f|
|
2012-02-19 09:35:31 -05:00
|
|
|
-if @wiki.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
|
|
|
|
%ul
|
|
|
|
- @wiki.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2012-07-26 07:45:17 -04:00
|
|
|
.main_box
|
|
|
|
.top_box_content
|
|
|
|
= f.label :title
|
2012-08-10 18:07:50 -04:00
|
|
|
.input= f.text_field :title, class: 'span8'
|
2012-07-26 07:45:17 -04:00
|
|
|
= f.hidden_field :slug
|
|
|
|
.middle_box_content
|
|
|
|
.input
|
|
|
|
%span.cgray
|
2012-09-06 03:50:47 -04:00
|
|
|
Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}.
|
2012-08-24 11:35:21 -04:00
|
|
|
To link to a (new) page you can just type
|
2012-07-26 07:45:17 -04:00
|
|
|
%code [Link Title](page-slug)
|
2012-08-24 11:35:21 -04:00
|
|
|
\.
|
2012-07-26 07:45:17 -04:00
|
|
|
|
|
|
|
.bottom_box_content
|
|
|
|
= f.label :content
|
2012-10-12 02:19:34 -04:00
|
|
|
.input= f.text_area :content, class: 'span8 js-gfm-input'
|
2012-02-19 09:35:31 -05:00
|
|
|
.actions
|
2012-08-30 15:15:34 -04:00
|
|
|
= f.submit 'Save', class: "save-btn btn"
|
|
|
|
= link_to "Cancel", project_wiki_path(@project, :index), class: "btn cancel-btn"
|