2012-01-18 21:14:12 +00:00
|
|
|
= render :partial => 'gollum_includes'
|
|
|
|
= render :partial => 'project_short'
|
2012-01-17 23:30:54 +00:00
|
|
|
|
|
|
|
%a{ :name => "wiki"}
|
|
|
|
.block
|
2012-01-24 20:47:55 +00:00
|
|
|
= render :partial => 'navigation'
|
2012-01-17 23:30:54 +00:00
|
|
|
|
|
|
|
.content
|
|
|
|
#wiki-wrapper.inner.history
|
|
|
|
#head
|
2012-01-19 14:37:36 +00:00
|
|
|
%h1.title
|
2012-01-19 23:04:11 +00:00
|
|
|
- if @name
|
|
|
|
= t("layout.wiki.history_for")
|
2012-01-28 01:56:27 +00:00
|
|
|
%strong= @page.name
|
2012-01-19 23:04:11 +00:00
|
|
|
- else
|
|
|
|
= t("layout.wiki.wiki_history")
|
2012-01-17 23:30:54 +00:00
|
|
|
|
|
|
|
%ul.actions
|
2012-01-19 23:04:11 +00:00
|
|
|
- if @name
|
2012-01-26 16:26:21 +00:00
|
|
|
- if can? :read, @project
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.view_page"), view_path(@project, escaped_name),
|
|
|
|
:class => 'action-view-page'
|
2012-01-28 02:05:13 +00:00
|
|
|
- if can? :write, @project
|
2012-01-26 16:26:21 +00:00
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.edit_page"), edit_project_wiki_path(@project, escaped_name),
|
|
|
|
:class => 'aciton-edit-page'
|
2012-01-19 23:04:11 +00:00
|
|
|
- else
|
2012-01-26 16:26:21 +00:00
|
|
|
- if can? :read, @project
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.view_page"), project_wiki_index_path(@project)
|
2012-01-17 23:30:54 +00:00
|
|
|
= render :partial => 'searchbar'
|
|
|
|
|
|
|
|
#wiki-content
|
|
|
|
= render :partial => "history"
|
|
|
|
|
|
|
|
- content_for :sidebar do
|
|
|
|
- render :partial => 'projects/sidebar'
|