thingspeak/app/views/channels/index.html.erb

25 lines
598 B
Plaintext
Raw Normal View History

2011-03-30 06:08:19 +02:00
<h2><%= t(:channels) %></h2>
<% if @channels.length > 0 %>
<table class="nicetable">
<tr class="header TAC">
<td><%= t(:channel_id) %></td>
<td><%= t(:channel_name) %></td>
</tr>
<% @channels.each do |d| %>
<tr>
<td class="left"><%= link_to d.id, channel_path(d.id) %></td>
<td><%= link_to d.name, channel_path(d.id) %></td>
</tr>
<% end %>
</table>
<br /><br />
2011-03-27 22:56:15 +02:00
<% end %>
2011-03-30 06:08:19 +02:00
<%= form_for :channel do |d| %>
<input name='userlogin' class='userlogin' />
<%= d.submit t(:channel_create) %>
<% end %>