<% if @channels.length > 0 %> <% @channels.where(:social => false).each do |channel| %> <% end %>
<%= t(:channel_name) %> <%= t(:created) %>
<%= channel.name %>
<%= link_to t(:private_link), channel_path(channel.id, :anchor => 'privateview') %> | <%= link_to t(:public_link), channel_path(channel.id, :anchor => 'publicview') %> | <%= link_to t(:settings_link), channel_path(channel.id, :anchor => 'channelsettings') %> | <%= link_to t(:api_key_link), channel_path(channel.id, :anchor => 'apikeys') %> | <%= link_to t(:data_import_link), channel_path(channel.id, :anchor => 'dataimport') %>
<%= channel.created_at.strftime("%Y-%m-%d") %>
<% end %> <%= button_to t(:channel_create), channels_path, :method => :post, :class => 'btn btn-primary' %> <% 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 %>