From 9521a998e5f797981794a3538763c8f44bcb19f1 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Tue, 5 Aug 2014 18:23:50 -0400 Subject: [PATCH] only show channel tags if present --- app/views/channels/_channelinfo.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/channels/_channelinfo.html.erb b/app/views/channels/_channelinfo.html.erb index 2c7d5fd..bb2fe0c 100644 --- a/app/views/channels/_channelinfo.html.erb +++ b/app/views/channels/_channelinfo.html.erb @@ -4,12 +4,14 @@
by <%= link_to @channel.user.login, user_profile_path(@channel.user.login) %>

<% end %>
<%= @channel.description %>

-
- Tags: - <% @channel.tags.each do |tag| %> - <%= tag.name %><% unless tag == @channel.tags.last %>, <% end %> - <% end %> -

+ <% if @channel.tags.present? %> +
+ Tags: + <% @channel.tags.each do |tag| %> + <%= tag.name %><% unless tag == @channel.tags.last %>, <% end %> + <% end %> +

+ <% end %>