rosa-build/app/views/projects/wiki/show.html.haml

26 lines
743 B
Plaintext
Raw Normal View History

2014-01-21 04:51:49 +00:00
-set_meta_tags title: [title_object(@project), @page.name]
= render 'submenu'
2012-03-23 15:36:47 +00:00
.left
%h3
= @page.name
= "(#{t("wiki.preview")})" if action_name == 'preview'
2012-02-17 11:13:54 +00:00
- unless action_name == 'preview'
.r
2014-01-21 04:51:49 +00:00
= link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), class: 'button'
2012-02-17 11:13:54 +00:00
.r
- if @editable
2014-01-21 04:51:49 +00:00
= link_to t("wiki.edit_page"), edit_project_wiki_path(@project, escaped_name), class: 'button'
2012-02-17 11:13:54 +00:00
.r
- if can? :write, @project
2014-01-21 04:51:49 +00:00
= link_to t("wiki.new_page"), '#', :'data-url' => project_wiki_index_path(@project), id: 'minibutton-new-page', class: 'button'
2012-02-17 11:13:54 +00:00
.both
/ = render 'searchbar'
= render "page"
- content_for :sidebar do
- render 'sidebar'
:css
#wiki-content .wrap { width: 100% }