Wiki: history
This commit is contained in:
parent
b565cd1972
commit
85974948e7
7 changed files with 41 additions and 4 deletions
14
app/views/wikis/history.html.haml
Normal file
14
app/views/wikis/history.html.haml
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue