summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-08-30 15:14:42 -0700
committerelijah <elijah@riseup.net>2012-08-30 15:14:42 -0700
commit0842c5d0ebc35b7272b4e54ca847cf3dd7f83674 (patch)
treeabc561fc1bb91ce7c414bb451f86eca0c4271ec2
parent660b90c785815a7af95f19c5dc8eaf2b85037cce (diff)
blog 'read more' links: use @more attribute for now.HEADmaster
-rw-r--r--app/views/layouts/blog/_summary.html.haml2
-rw-r--r--app/views/pages/about-us/news/2012/security-bingo/en.haml1
2 files changed, 2 insertions, 1 deletions
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.