2012-01-18 21:14:12 +00:00
|
|
|
= render :partial => 'gollum_includes'
|
|
|
|
= render :partial => 'project_short'
|
2012-01-16 21:48:38 +00:00
|
|
|
|
|
|
|
%a{ :name => "wiki"}
|
|
|
|
.block
|
2012-01-24 20:47:55 +00:00
|
|
|
= render :partial => 'navigation'
|
2012-01-16 21:48:38 +00:00
|
|
|
|
|
|
|
.content
|
2012-01-17 22:28:59 +00:00
|
|
|
.inner
|
|
|
|
#wiki-wrapper.page
|
|
|
|
#head
|
2012-01-19 12:09:55 +00:00
|
|
|
%h1.title
|
2012-01-28 01:56:27 +00:00
|
|
|
= @page.name
|
2012-01-19 12:09:55 +00:00
|
|
|
= "(#{t("layout.wiki.preview")})" if action_name == 'preview'
|
|
|
|
- unless action_name == 'preview'
|
|
|
|
%ul.actions
|
2012-01-28 02:05:13 +00:00
|
|
|
- if can? :write, @project
|
2012-01-26 16:26:21 +00:00
|
|
|
%li.minibutton.jaws
|
|
|
|
= link_to t("layout.wiki.new_page"), '#', :'data-url' => project_wiki_index_path(@project),
|
|
|
|
:id => 'minibutton-new-page'
|
2012-01-19 12:09:55 +00:00
|
|
|
- if @editable
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.edit_page"), edit_project_wiki_path(@project, escaped_name), :class => "action-edit-page"
|
|
|
|
%li.minibutton= link_to t("layout.wiki.page_history"), history_project_wiki_path(@project, escaped_name)
|
|
|
|
= render :partial => 'searchbar'
|
2012-01-17 22:28:59 +00:00
|
|
|
|
|
|
|
= render :partial => "page"
|
2012-01-16 21:48:38 +00:00
|
|
|
|
|
|
|
- content_for :sidebar do
|
|
|
|
- render :partial => 'projects/sidebar'
|