aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDavid Jones <dgjones@gmail.com>2011-05-31 13:52:30 +1200
committerDavid Jones <dgjones@gmail.com>2011-05-31 13:52:30 +1200
commitb7894a900b3f893d260af9159c49f6f7aa78bd50 (patch)
tree6811ffd7af02463e51aa293a700caece7f0ebab5 /app
parent92e128d2fbd049c62389598a6c97e6ffd400e2e9 (diff)
downloadrefinerycms-blog-b7894a900b3f893d260af9159c49f6f7aa78bd50.tar.gz
refinerycms-blog-b7894a900b3f893d260af9159c49f6f7aa78bd50.tar.bz2
refinerycms-blog-b7894a900b3f893d260af9159c49f6f7aa78bd50.zip
fixed issue where the tags heading was showing up even though there are no tags
Diffstat (limited to 'app')
-rw-r--r--app/views/blog/shared/_tags.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/blog/shared/_tags.html.erb b/app/views/blog/shared/_tags.html.erb
index f8833f1..140e60e 100644
--- a/app/views/blog/shared/_tags.html.erb
+++ b/app/views/blog/shared/_tags.html.erb
@@ -1,4 +1,4 @@
-<% unless @tags.nil? %>
+<% if @tags.any? %>
<h2><%= t('.title') %></h2>
<nav id='tags'>
<% tag_cloud(@tags, %w(tag1 tag2 tag3 tag4)) do |tag, css_class| %>