2014-02-17 18:05:39 +01:00
<div class="row">
<div class="col-xs-12 col-sm-6">
<h4 class="breadcrumb"><%= t(:channels_my) %></h4>
2014-07-23 19:45:15 +02:00
<div class="col-pad" data-no-turbolink>
2014-02-17 18:05:39 +01:00
<% if @channels.length > 0 %>
2014-05-12 23:01:14 +02:00
<table class="table table-striped table-bordered tablesorter">
<thead>
<tr>
<th><%= t(:channel_name) %> <i class="fa fa-unsorted"></i></th>
<th><%= t(:created) %> <i class="fa fa-unsorted"></i></td>
</tr>
</thead>
<tbody>
<% @channels.where(:social => false).each do |channel| %>
2014-02-17 18:05:39 +01:00
<tr>
<td>
2014-05-12 23:01:14 +02:00
<a href="/channels/<%= channel.id %>">
<i class="fa fa-<%= 'un' if channel.public_flag == true %>lock fa-fw"></i>
<%= channel.name %>
</a>
<br>
<%= 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') %>
</td>
<td><%= channel.created_at.strftime("%Y-%m-%d") %></td>
2014-02-17 18:05:39 +01:00
</tr>
<% end %>
2014-05-12 23:01:14 +02:00
</tbody>
2014-02-17 18:05:39 +01:00
</table>
2011-03-30 06:08:19 +02:00
<% end %>
2014-02-17 18:05:39 +01:00
2014-05-12 23:01:14 +02:00
<%= button_to t(:channel_create), channels_path, :method => :post, :class => 'btn btn-primary' %>
2014-02-17 18:05:39 +01:00
2014-03-22 18:21:45 +01:00
<% if current_admin_user.present? %>
2014-03-14 00:16:35 +01:00
<br><br><br>
2014-02-17 18:05:39 +01:00
<% @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}" %>
2014-03-14 00:16:35 +01:00
<br>
2014-02-17 18:05:39 +01:00
<% end %>
<% end %>
2014-03-14 00:16:35 +01:00
<br>
2014-02-17 18:05:39 +01:00
<%= link_to t(:social_channel_create), :controller => 'channels', :action => 'social_new' %>
<% end %>
</div>
</div>
2014-02-18 01:53:32 +01:00
<div id="sidebar" class="col-xs-12 col-sm-6">
2014-02-17 18:05:39 +01:00
<h4 class="breadcrumb"><%= t(:help) %></h4>
<div class="col-pad">
<%= t(:help_channel) %>
2014-02-28 19:57:58 +01:00
(<a href="/docs/channels"><%= t(:help_options) %></a>)
2014-02-17 18:05:39 +01:00
<ul>
<li><a href="http://community.thingspeak.com/tutorials/arduino/using-an-arduino-ethernet-shield-to-update-a-thingspeak-channel/">Arduino Tutorial</a></li>
<li><a href="http://community.thingspeak.com/tutorials/netduino/create-your-own-web-of-things-using-the-netduino-plus-and-thingspeak/">Netduino Plus Tutorial</a></li>
</ul>
</div>
</div>
</div>
2014-05-12 23:01:14 +02:00
<script>
2014-07-23 19:45:15 +02:00
$(document).on('page:load ready', function() {
2014-05-12 23:01:14 +02:00
$('.tablesorter').tablesorter();
});
</script>