From e6c75a021441316ff1a1e0c9f2e9d5b027412a32 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 23 Dec 2013 16:34:10 +0100 Subject: Title of sidebar entry links to full blog post. --- app/decorators/models/sidebar_post_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/decorators/models') diff --git a/app/decorators/models/sidebar_post_decorator.rb b/app/decorators/models/sidebar_post_decorator.rb index 14cbe7c..c6f10d5 100644 --- a/app/decorators/models/sidebar_post_decorator.rb +++ b/app/decorators/models/sidebar_post_decorator.rb @@ -9,7 +9,7 @@ class SidebarPostDecorator < SimpleDelegator end def title - content_tag(:h2, super) + content_tag(:h2, link_to(super, __getobj__.friendly_id)) end def body -- cgit v1.2.3