From 17071057ebde2072752491318760a5d6072d450b Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 23 Sep 2013 17:16:02 -0300 Subject: [PATCH] Adding title to cms article mime-type --- app/views/cms/view.rhtml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/cms/view.rhtml b/app/views/cms/view.rhtml index 036d6c3..1749156 100644 --- a/app/views/cms/view.rhtml +++ b/app/views/cms/view.rhtml @@ -45,10 +45,11 @@ <%= link_to_article(article) %> - - <%= article.respond_to?(:short_description) ? - article.short_description : - article.class.short_description %> + <% short_description = article.respond_to?(:short_description) ? + article.short_description : + article.class.short_description %> + > + <%= short_description %> <%= expirable_button article, :edit, _('Edit'), {:action => 'edit', :id => article.id} if !remove_content_button(:edit) %> -- libgit2 0.21.2