foodsoft/app/views/pages/version.html.haml

12 lines
481 B
Text
Raw Normal View History

2013-04-12 00:58:38 +02:00
- title t('.title', title: @page.title, version: @version.lock_version)
2009-05-15 17:32:45 +02:00
2012-10-09 02:31:10 +02:00
- content_for :sidebar do
2013-04-12 00:58:38 +02:00
%h3= t '.title_version'
%b= "#{format_datetime_timespec(@version.updated_at, t('.date_format'))}"
2012-10-09 02:31:10 +02:00
%ul
2013-09-20 22:40:13 +02:00
%li= t '.author', user: show_user(User.find(@version.updated_by))
2013-04-12 00:58:38 +02:00
%li= link_to t('.view_current'), wiki_page_path(:permalink => @page.permalink)
%li= link_to t('.revert'), revert_page_path(@page, :version => @version.lock_version)
2009-05-15 17:32:45 +02:00
2012-10-09 02:31:10 +02:00
= wikified_body @version.body