2014-08-06 17:20:24 +02:00
|
|
|
<% @channels.each do |channel| %>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-08-06 17:20:24 +02:00
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12">
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
|
|
|
|
<div class="panel-heading">
|
2014-10-17 20:51:58 +02:00
|
|
|
<%= link_to channel_path(channel.id), class: 'link-no-hover' do %>
|
2014-08-06 17:20:24 +02:00
|
|
|
<i class="fa fa-bar-chart-o"></i>
|
|
|
|
<% end %>
|
2014-10-17 20:51:58 +02:00
|
|
|
<%= link_to channel_path(channel.id) do %>
|
2014-08-06 17:20:24 +02:00
|
|
|
<%= truncate(channel.name, length: 23) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<p class="small">by <%= link_to(channel.user.login, user_profile_path(channel.user.login)) if channel.user.present? %></p>
|
|
|
|
<p class="public_channel_description"><%= channel.description %></p>
|
2014-02-17 18:05:39 +01:00
|
|
|
<div class="progressbar" rel="<%= channel.ranking %>"></div>
|
2014-08-06 17:20:24 +02:00
|
|
|
<div class="public_channel_tags">
|
|
|
|
<% if channel.tags.present? %>
|
|
|
|
<i class="fa fa-tags"></i>
|
|
|
|
<% channel.tags.each do |tag| %>
|
|
|
|
<a href="/channels/public?tag=<%=u tag.name %>"><%= tag.name %></a><% unless tag == channel.tags.last %>, <% end %>
|
|
|
|
<% end %>
|
2014-02-17 18:05:39 +01:00
|
|
|
<% end %>
|
2014-08-06 17:20:24 +02:00
|
|
|
</div>
|
2014-02-17 18:05:39 +01:00
|
|
|
</div>
|
2014-08-06 17:20:24 +02:00
|
|
|
|
2014-02-17 18:05:39 +01:00
|
|
|
</div>
|
2014-08-06 17:20:24 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
2014-02-17 18:05:39 +01:00
|
|
|
|
2014-08-06 17:20:24 +02:00
|
|
|
<div class="clearfix"></div>
|
2014-02-17 18:05:39 +01:00
|
|
|
|