Wiki: history

This commit is contained in:
Valery Sizov 2012-02-19 21:52:05 +02:00
parent b565cd1972
commit 85974948e7
7 changed files with 41 additions and 4 deletions

View file

@ -0,0 +1,14 @@
%h2 Versions
%table
%thead
%tr
%th #
%th last edit
%th created by
%tbody
- @wikis.each_with_index do |wiki_page, i|
%tr
%td= i + 1
%td= link_to wiki_page.created_at.to_s(:short), project_wiki_path(@project, wiki_page, :old_page_id => wiki_page.id)
%td= wiki_page.user.name

View file

@ -1,6 +1,8 @@
%h3
= @wiki.title
- if can? current_user, :write_wiki, @project
= link_to history_project_wiki_path(@project, @wiki), :class => "right btn small" do
History
= link_to edit_project_wiki_path(@project, @wiki), :class => "right btn small" do
Edit