<%= button_to t(:channel_create), channels_path, :method => :post, :class => 'btn btn-primary' %>
<% if @channels.length > 0 %> <% @channels.where(:social => false).each do |channel| %> <% end %>
<%= t(:channel_name) %> <%= t(:created) %>

<%= channel.name %>

<%= channel.created_at.strftime("%Y-%m-%d") %>
<% end %> <% if current_admin_user.present? %>


<% @channels.each do |c| %> <% if c.social %> <%= t(:social_channel) %>: <%= link_to c.name, (Rails.env == 'production') ? "http://www.socialsensornetwork.com/#{c.slug}" : "/s/#{c.slug}" %>
<% end %> <% end %>
<%= link_to t(:social_channel_create), :controller => 'channels', :action => 'social_new' %> <% end %>