Added version control for wiki pages.
This commit is contained in:
parent
7ba6bc3680
commit
053c665270
36 changed files with 1647 additions and 15 deletions
11
app/views/pages/version.html.haml
Normal file
11
app/views/pages/version.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
- title @version.title
|
||||
|
||||
#page-versions{:style => "float:right"}
|
||||
%b= "Version vom #{format_datetime @version.updated_at}"
|
||||
%ul
|
||||
%li= "Autor: #{User.find(@version.updated_by).nick}"
|
||||
%li= link_to "Aktuelle Version sehen", wiki_page_path(:permalink => @page.permalink)
|
||||
%li= link_to "Auf diese Version zurücksetzen", revert_page_path(@page, :version => @version.version)
|
||||
|
||||
= wikified_body @version.body
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue