2014-01-21 04:51:49 +00:00
|
|
|
-set_meta_tags title: [title_object(@project), "#{t('wiki.editing_page')} #{@page.name}"]
|
2012-02-24 21:37:22 +00:00
|
|
|
= render 'gollum_includes'
|
|
|
|
/ = render 'project_short'
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'submenu'
|
2012-03-23 15:36:47 +00:00
|
|
|
.left
|
|
|
|
%h3
|
|
|
|
= t("wiki.editing_page")
|
|
|
|
%strong= @page.name
|
2012-02-17 12:47:33 +00:00
|
|
|
- if can? :read, @project
|
2014-01-21 04:51:49 +00:00
|
|
|
.r= link_to t("wiki.view_page"), view_path(@project, escaped_name), class: 'action-view-page button'
|
|
|
|
.r= link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), class: 'aciton-view-history button'
|
2012-03-23 15:36:47 +00:00
|
|
|
.both
|
2012-02-24 21:37:22 +00:00
|
|
|
#wiki-content= render "editor"
|
2012-01-17 22:28:59 +00:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
$.GollumEditor();
|
|
|
|
});
|
|
|
|
|
2012-02-17 12:47:33 +00:00
|
|
|
:css
|
|
|
|
#gollum-editor { width: 100%; }
|
|
|
|
|
2012-01-17 22:28:59 +00:00
|
|
|
- content_for :sidebar do
|
2012-02-24 21:37:22 +00:00
|
|
|
- render 'sidebar'
|