summaryrefslogtreecommitdiff
path: root/app/views/wikis/show.html.haml
blob: fe85ba23a870cd8c6e4f1dd929933d02653fb400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%h3.page_title
  = @wiki.title
  %span.right
    = link_to pages_project_wikis_path(@project), class: "btn small grouped" do
      Pages
    - if can? current_user, :write_wiki, @project
      = link_to history_project_wiki_path(@project, @wiki), class: "btn small grouped" do
        History
      = link_to edit_project_wiki_path(@project, @wiki), class: "btn small grouped" do
        %i.icon-edit
        Edit
%br
.file_content.wiki
  = preserve do
    = markdown @wiki.content

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

%hr
.wiki_notes#notes= render "notes/notes_with_form", tid: @wiki.id, tt: "wiki"