From 3ae186b52a0a9c44b6530314a05dac27e1cadd67 Mon Sep 17 00:00:00 2001 From: Victor Hugo Alves de Carvalho Date: Wed, 9 Oct 2013 19:35:26 -0300 Subject: [PATCH] Move the "back button" to the outside of the article body. --- app/views/content_viewer/view_page.rhtml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml index 2528e7b..be612fc 100644 --- a/app/views/content_viewer/view_page.rhtml +++ b/app/views/content_viewer/view_page.rhtml @@ -14,6 +14,12 @@ window.NO_COMMENT_YET = "<%= _('No comments yet') %>"; +<% if @page.parent && !@page.parent.path.blank? %> +
+ <%= button(:back, _('Go back to %s') % @page.parent.short_title, @page.parent.url) %> +
+<% end %> +