_main_links.html.haml 319 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 %span.pull-right - if (@wiki && @wiki.persisted?) = link_to history_project_wiki_path(@project, @wiki), class: "btn grouped" do Page History - if can?(current_user, :write_wiki, @project) = link_to edit_project_wiki_path(@project, @wiki), class: "btn grouped" do %i.icon-edit Edit