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
|
2013-04-12 00:58:38 +02:00
|
|
|
%h3= 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
|
2013-04-12 00:58:38 +02:00
|
|
|
\== #{t '.help.heading', level: 1} ==
|
2009-08-22 18:14:56 +02:00
|
|
|
%pre
|
2013-04-12 00:58:38 +02:00
|
|
|
\=== #{t '.help.heading', level: 2} ===
|
2009-08-22 18:14:56 +02:00
|
|
|
%pre
|
2013-04-12 00:58:38 +02:00
|
|
|
\==== #{t '.help.heading', level: 3} ====
|
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
|
2013-04-12 00:58:38 +02:00
|
|
|
* #{t '.help.list_item_1'}
|
2009-08-22 18:14:56 +02:00
|
|
|
%pre
|
2013-09-10 10:27:13 +02:00
|
|
|
** #{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
|
2013-04-12 00:58:38 +02:00
|
|
|
\# #{t '.help.list_item_1'}
|
2009-08-22 18:14:56 +02:00
|
|
|
%pre
|
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'}]
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
|
|
|
%td(colspan=2)
|
2013-05-06 12:43:57 +02:00
|
|
|
%b= t '.help.section_table'
|
2009-08-22 18:14:56 +02:00
|
|
|
%tr
|
2013-04-12 00:58:38 +02:00
|
|
|
%td!= t '.help.see_tables', tables_link: link_to(t('.help.tables_link'), "http://www.mediawiki.org/wiki/Help:Tables", :target => '_blank')
|
2009-05-13 17:32:43 +02:00
|
|
|
|