aboutsummaryrefslogtreecommitdiffstats
path: root/app/decorators
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-12-23 16:34:10 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-12-23 16:34:10 +0100
commite6c75a021441316ff1a1e0c9f2e9d5b027412a32 (patch)
treeff9e3d1f35d510d31bb8c1f835717ee107a9a879 /app/decorators
parent6ca3b3a6abfc9fb508b337d27e683bf8a76400c3 (diff)
downloadhmnoweb-e6c75a021441316ff1a1e0c9f2e9d5b027412a32.tar.gz
hmnoweb-e6c75a021441316ff1a1e0c9f2e9d5b027412a32.tar.bz2
hmnoweb-e6c75a021441316ff1a1e0c9f2e9d5b027412a32.zip
Title of sidebar entry links to full blog post.
Diffstat (limited to 'app/decorators')
-rw-r--r--app/decorators/models/sidebar_post_decorator.rb2
1 files changed, 1 insertions, 1 deletions
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