Added page-preview feature to wiki module.
This commit is contained in:
parent
0fb8ee214f
commit
7de45543c4
7 changed files with 36 additions and 21 deletions
1
app/views/pages/_body.html.haml
Normal file
1
app/views/pages/_body.html.haml
Normal file
|
|
@ -0,0 +1 @@
|
|||
= wikified_body @page.body
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
- if params[:preview]
|
||||
%h2 Vorschau
|
||||
#preview= render :partial => 'body'
|
||||
|
||||
#wiki-syntax-help{:style => "float:right"}
|
||||
%p
|
||||
%b Schnelle Formatierungshilfe
|
||||
|
|
@ -25,6 +29,8 @@
|
|||
%br/
|
||||
= f.text_area :body, :size => "60x30"
|
||||
%p
|
||||
= f.submit "Vorschau", :name => 'preview'
|
||||
|
|
||||
= f.submit "Speichern"
|
||||
|
|
||||
= link_to "Abbrechen", :back
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
= "(#{User.find(version.updated_by).nick})"
|
||||
|
||||
|
||||
= wikified_body @page.body
|
||||
= render :partial => 'body'
|
||||
|
||||
%hr.clear/
|
||||
%p
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue