2009-05-20 12:42:01 +02:00
|
|
|
- if params[:preview]
|
2012-10-09 02:31:10 +02:00
|
|
|
%section#wikiContent
|
|
|
|
= render 'body'
|
2009-05-20 12:42:01 +02:00
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
.row-fluid
|
|
|
|
.span8
|
|
|
|
= simple_form_for @page do |f|
|
|
|
|
= f.hidden_field :lock_version
|
|
|
|
= f.input :title, input_html: {class: 'input-xxlarge'}
|
2014-02-20 15:04:53 +01:00
|
|
|
= f.input :body, input_html: {class: 'input-xxlarge', rows: 20}
|
2012-10-09 02:31:10 +02:00
|
|
|
= f.input :parent_id, as: :select, collection: parent_pages_to_select(@page)
|
|
|
|
.form-actions
|
|
|
|
= button_tag :name => 'preview', class: 'btn' do
|
2013-04-12 00:58:38 +02:00
|
|
|
%i.icon-search= t '.preview'
|
2012-10-09 02:31:10 +02:00
|
|
|
= button_tag class: 'btn' do
|
2013-04-12 00:58:38 +02:00
|
|
|
%i.icon-save= t 'ui.save'
|
|
|
|
= link_to t('ui.or_cancel'), @page
|
2012-10-09 02:31:10 +02:00
|
|
|
|
|
|
|
.span4
|
2015-03-20 15:50:49 +01:00
|
|
|
%h3(style='margin-top: 0')= t '.help.title'
|
2012-10-09 02:31:10 +02:00
|
|
|
%table.table
|
2009-08-22 18:14:56 +02:00
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td(colspan=2)
|
2013-04-12 00:58:38 +02:00
|
|
|
%b= t '.help.section_character'
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td
|
2013-04-12 00:58:38 +02:00
|
|
|
%i= t '.help.italic'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2013-04-12 00:58:38 +02:00
|
|
|
''#{t '.help.italic'}''<br />
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td
|
2013-04-12 00:58:38 +02:00
|
|
|
%b= t '.help.bold'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
2013-04-12 00:58:38 +02:00
|
|
|
%pre '''#{t '.help.bold'}'''<br />
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.noformat'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
2013-04-12 00:58:38 +02:00
|
|
|
%pre <nowiki>#{t '.help.text'}</nowiki>
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td(colspan=2)
|
2013-04-12 00:58:38 +02:00
|
|
|
%b= t '.help.section_block'
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.headings'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2015-03-20 15:50:49 +01:00
|
|
|
\== #{t '.help.heading', level: 1} == <br>
|
|
|
|
\=== #{t '.help.heading', level: 2} === <br>
|
|
|
|
\==== #{t '.help.heading', level: 3} ==== <br>
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.unordered_list'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2015-03-20 15:50:49 +01:00
|
|
|
* #{t '.help.list_item_1'} <br>
|
|
|
|
* #{t '.help.list_item_2'}
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.ordered_list'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2015-03-20 15:50:49 +01:00
|
|
|
\# #{t '.help.list_item_1'} <br>
|
2013-04-12 00:58:38 +02:00
|
|
|
\# #{t '.help.list_item_2'}
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td(colspan=2)
|
2013-04-12 00:58:38 +02:00
|
|
|
%b= t '.help.section_link'
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.wiki_links'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2013-04-12 00:58:38 +02:00
|
|
|
[[#{t '.help.wiki_link_ex'}]]
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td= t '.help.external_links'
|
2009-08-22 18:14:56 +02:00
|
|
|
%td
|
|
|
|
%pre
|
2013-04-12 00:58:38 +02:00
|
|
|
[http://example.net #{t '.help.external_link_ex'}]
|
2015-03-20 15:50:49 +01:00
|
|
|
%tr
|
|
|
|
%td= t '.help.image_links'
|
|
|
|
%td
|
|
|
|
%pre
|
|
|
|
[[Image:http://example.net/image.jpg|#{t '.help.image_link_title'}]]
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td(colspan=2)
|
2015-03-20 15:50:49 +01:00
|
|
|
%b= t '.help.section_more'
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2015-03-20 15:50:49 +01:00
|
|
|
%td(colspan=2)
|
|
|
|
%ul
|
|
|
|
%li!= link_to t('.help.link_table'), '//www.mediawiki.org/wiki/Help:Tables', target: '_blank'
|
2015-03-20 16:32:58 +01:00
|
|
|
%li!= link_to t('.help.link_variables'), page_path('Help:Foodsoft_variables'), target: '_blank'
|
2015-03-20 15:50:49 +01:00
|
|
|
%li!= link_to t('.help.link_lists'), '//www.mediawiki.org/wiki/Help:Lists', target: '_blank'
|
|
|
|
%li!= link_to t('.help.link_templates'), '//www.mediawiki.org/wiki/Help:Templates', target: '_blank'
|