Improved wiki layout for sidebar and version sections
* Added new helper function format_datetime_timespec
This commit is contained in:
parent
f7e24d26b4
commit
7ec5381ca0
7 changed files with 149 additions and 98 deletions
|
|
@ -13,11 +13,15 @@
|
|||
= @page.title
|
||||
|
||||
#sidebar
|
||||
%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.lock_version)
|
||||
.box_title
|
||||
%h2 Version
|
||||
.column_content
|
||||
%b= "#{format_datetime_timespec(@version.updated_at, "%a, %d.%m.%Y, %H:%M Uhr") }"
|
||||
%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.lock_version)
|
||||
|
||||
= wikified_body @version.body
|
||||
%div(style="clear:right")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue