BigW Consortium Gitlab

show.html.haml 631 Bytes
Newer Older
Valery Sizov committed
1 2
%h3
  = @wiki.title
3 4
  %span.right
    - if can? current_user, :write_wiki, @project
Dmitriy Zaporozhets committed
5
      = link_to history_project_wiki_path(@project, @wiki), :class => "btn small padded" do
6
        History
7 8
      = link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
        Edit
vsizov committed
9
%hr
10
.wiki_content
11
  = preserve do
12
    = markdown @wiki.content
vsizov committed
13

14
%p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago
15
- if can? current_user, :admin_wiki, @project
vsizov committed
16 17
  = link_to project_wiki_path(@project, @wiki), :confirm => "Are you sure you want to delete this page?", :method => :delete do
    Delete this page