<% if @channels.length > 0 %> <% @channels.each do |channel| %> <% if !channel.social %> <% end %> <% end %>

<%= link_to channel.name, channel_path(channel.id), :id => "showsite_#{channel.id}" %>

<%= channel.public_flag ? image_tag('icons/Unlocked.png', :title=> t(:public_true)) : image_tag('icons/Locked.png', :title=> t(:channel_not_public)) %>

<%= 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.description %>


<% end %> <%= form_for :channel do |d| %> <%= d.submit t(:channel_create), :class => 'btn btn-primary' %> <% end %> <% if is_admin? %>


<% @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 %>