<%= link_to t(:channels), channels_path %> »
<%= t(:channel) %> <%= @channel.id %>
<% if current_user && current_user.id == @channel.user_id %>
- <%= link_to t(:channel_edit), edit_channel_path(@channel.id) %>
- <%= link_to t(:api_keys_manage), channel_api_keys_path(@channel) %>
- <%= link_to "#{t(:charts_view)}", channel_charts_path(@channel) %>
- <%= link_to "#{t(:channel_feed)} (json)", channel_feed_index_path(@channel, :key => @key, :format => :json) %>
- <%= link_to "#{t(:channel_feed)} (xml)", channel_feed_index_path(@channel, :key => @key, :format => :xml) %>
- <%= link_to "#{t(:channel_feed)} (csv)", channel_feed_index_path(@channel, :key => @key, :format => :csv) %>
- <%= link_to t(:import_data), channel_import_path(@channel) %>
<% else %>
<% if @channel.public_flag %>
<%= t(:channel_public) %>
<% @channel.attribute_names.each do |attr| %>
<% if attr.index('field') and @channel[attr] and !@channel[attr].empty? %>
<% end %>
<% end %>
<% else %>
<%= t(:channel_not_public) %>
<% end %>
<% end %>