2012-03-30 13:30:39 +01:00
|
|
|
-set_meta_tags :title => [title_object(@project), @page.name]
|
2012-02-24 21:37:22 +00:00
|
|
|
/ = 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
|
2012-02-24 21:37:22 +00:00
|
|
|
/ = render 'searchbar'
|
|
|
|
= render "page"
|
2012-01-16 21:48:38 +00:00
|
|
|
|
|
|
|
- content_for :sidebar do
|
2012-02-24 21:37:22 +00:00
|
|
|
- render 'sidebar'
|
2012-02-17 12:47:33 +00:00
|
|
|
|
|
|
|
:css
|
|
|
|
#wiki-content .wrap { width: 100% }
|