BigW Consortium Gitlab

show.html.haml 848 Bytes
Newer Older
Dmitriy Zaporozhets committed
1
%h3.page_title
Valery Sizov committed
2
  = @wiki.title
3
  %span.right
4
    = link_to pages_project_wikis_path(@project), class: "btn small grouped" do
Dmitriy Zaporozhets committed
5
      Pages
6
    - if can? current_user, :write_wiki, @project
7
      = link_to history_project_wiki_path(@project, @wiki), class: "btn small grouped" do
8
        History
9
      = link_to edit_project_wiki_path(@project, @wiki), class: "btn small grouped" do
10
        %i.icon-edit
11
        Edit
12 13 14 15 16
%br
.file_holder
  .file_content.wiki
    = preserve do
      = markdown @wiki.content
vsizov committed
17

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

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