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

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-01-18 21:14:12 +00:00
= render :partial => 'gollum_includes'
= render :partial => 'project_short'
%a{ :name => "wiki"}
.block
= render :partial => 'navigation'
.content
.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'
= render :partial => "page"
- content_for :sidebar do
- render :partial => 'projects/sidebar'