2012-01-17 22:28:59 +00:00
|
|
|
#wiki-content
|
2014-01-21 04:51:49 +00:00
|
|
|
.wrap{class: "#{has_footer? ? 'has-footer' : ''} #{has_sidebar? ? 'has-rightbar' : ''}"}
|
|
|
|
#wiki-body{class: "gollum-#{format}-content"}
|
2012-02-24 21:37:22 +00:00
|
|
|
#template= raw @content
|
2012-01-17 22:28:59 +00:00
|
|
|
- if has_sidebar?
|
2014-01-21 04:51:49 +00:00
|
|
|
#wiki-rightbar{class: "gollum-#{sidebar_format}-content"}= raw sidebar_content
|
2012-01-17 22:28:59 +00:00
|
|
|
- if has_footer?
|
2014-01-21 04:51:49 +00:00
|
|
|
#wiki-footer{class: "gollum-#{footer_format}-content"}
|
2012-02-24 21:37:22 +00:00
|
|
|
#footer-content= raw footer_content
|
2012-03-23 15:36:47 +00:00
|
|
|
.both
|
2012-01-17 22:28:59 +00:00
|
|
|
#gollum-footer
|
|
|
|
%p#last-edit
|
2012-02-24 21:37:22 +00:00
|
|
|
= t("wiki.last_edited_by")
|
2014-01-21 04:51:49 +00:00
|
|
|
%b= user_link_by_user User.where(email: author_email).first
|
|
|
|
= datetime_moment date, tag: :span
|
2012-01-28 02:05:13 +00:00
|
|
|
- unless action_name == 'preview' or cannot? :write, @project
|
2012-01-19 12:09:55 +00:00
|
|
|
%p#delete-link
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to project_wiki_path(@project, escaped_name), method: :delete, confirm: t("layout.confirm") do
|
2012-02-24 21:37:22 +00:00
|
|
|
%span= t("wiki.delete_page")
|