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

27 lines
822 B
Plaintext
Raw Normal View History

2012-03-30 13:30:39 +01:00
-set_meta_tags :title => [title_object(@project), @page.name]
/ = render 'gollum_includes'
/ = render 'project_short'
= render 'projects/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
2012-03-23 15:36:47 +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
2012-03-23 15:36:47 +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
2012-03-23 15:36:47 +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% }