2014-02-18 18:47:54 +01:00
|
|
|
<div>
|
2014-02-17 18:05:39 +01:00
|
|
|
<% @channels.each do |channel| %>
|
|
|
|
|
|
|
|
<% channel.ranking = channel.calc_ranking if channel.ranking.blank? %>
|
|
|
|
<div class="public_channel_box">
|
|
|
|
<div class="public_channel_inner">
|
|
|
|
<p class="public_channel_name">
|
2014-06-04 16:32:48 +02:00
|
|
|
<%= link_to truncate(channel.name, length: 23), channel_path(channel.id), :id => "showsite_#{channel.id}" %>
|
2014-02-17 18:05:39 +01:00
|
|
|
</p>
|
|
|
|
<p class="public_channel_user" >by <%= channel.user.login %></p>
|
|
|
|
<p class="public_channel_desc"><%= channel.description %></p>
|
|
|
|
<div class="progressbar" rel="<%= channel.ranking %>"></div>
|
|
|
|
<p class="public_channel_tags">
|
|
|
|
<% channel.tags.each do |tag| %>
|
|
|
|
<a href="/channels/public?tag=<%=u tag.name %>"><%= tag.name %></a><% unless tag == channel.tags.last %>, <% end %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|