From 0842c5d0ebc35b7272b4e54ca847cf3dd7f83674 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 30 Aug 2012 15:14:42 -0700 Subject: blog 'read more' links: use @more attribute for now. --- app/views/layouts/blog/_summary.html.haml | 2 +- app/views/pages/about-us/news/2012/security-bingo/en.haml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/blog/_summary.html.haml b/app/views/layouts/blog/_summary.html.haml index 68756b1..0abe3f2 100644 --- a/app/views/layouts/blog/_summary.html.haml +++ b/app/views/layouts/blog/_summary.html.haml @@ -11,7 +11,7 @@ %div.content - if page.props.preview = page.props.preview - - if page.props.body.try(:any?) + - if page.props.more = link_to(I18n.t(:read_more), page_path(page)) - else = render :template => page.template_path \ No newline at end of file diff --git a/app/views/pages/about-us/news/2012/security-bingo/en.haml b/app/views/pages/about-us/news/2012/security-bingo/en.haml index 64eff77..134b205 100644 --- a/app/views/pages/about-us/news/2012/security-bingo/en.haml +++ b/app/views/pages/about-us/news/2012/security-bingo/en.haml @@ -1,6 +1,7 @@ - @title = "Let's play security bingo!" - @author = "Elijah" - @posted_at = "2012-08-28" +- @more = true - @preview = capture_haml do :textile To be honest, this is might be the least satisfying game of bingo ever--but let's play anyway. The rules are simple: draw a grid, label the columns for different platforms, and label the rows for important communication toolsets. In each cell, put the name of an open source software package with reasonable security properties. If this exercise doesn't make you break down in tears, then you have won. -- cgit v1.2.3