fix error when no user for channel

This commit is contained in:
Lee Lawlor 2014-06-20 14:57:39 -04:00
parent d1b5162154
commit 91a4850525

View File

@ -7,7 +7,7 @@
<p class="public_channel_name"> <p class="public_channel_name">
<%= link_to truncate(channel.name, length: 23), channel_path(channel.id), :id => "showsite_#{channel.id}" %> <%= link_to truncate(channel.name, length: 23), channel_path(channel.id), :id => "showsite_#{channel.id}" %>
</p> </p>
<p class="public_channel_user" >by <%= channel.user.login %></p> <p class="public_channel_user" >by <%= channel.user.login if channel.user.present? %></p>
<p class="public_channel_desc"><%= channel.description %></p> <p class="public_channel_desc"><%= channel.description %></p>
<div class="progressbar" rel="<%= channel.ranking %>"></div> <div class="progressbar" rel="<%= channel.ranking %>"></div>
<p class="public_channel_tags"> <p class="public_channel_tags">