adding csv import to channels

This commit is contained in:
ioBridge
2011-04-05 16:26:52 -04:00
parent 1fd9d38fbd
commit 2194956a33
4 changed files with 179 additions and 7 deletions

View File

@@ -4,13 +4,16 @@
</h2>
<% 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) %>
<ul>
<li><%= link_to t(:channel_edit), edit_channel_path(@channel.id) %></li>
<li><%= link_to t(:api_keys_manage), channel_api_keys_path(@channel) %></li>
<li><%= link_to "#{t(:charts_view)}", channel_charts_path(@channel) %></li>
<li><%= link_to "#{t(:channel_feed)} (json)", channel_feed_index_path(@channel, :key => @key, :format => :json) %></li>
<li><%= link_to "#{t(:channel_feed)} (xml)", channel_feed_index_path(@channel, :key => @key, :format => :xml) %></li>
<li><%= link_to "#{t(:channel_feed)} (csv)", channel_feed_index_path(@channel, :key => @key, :format => :csv) %></li>
<li><%= link_to t(:import_data), channel_import_path(@channel) %></li>
</ul>
<br /><br />
<table class="table_no_header">
@@ -30,6 +33,10 @@
<td class="left"><%= t(:channel_description) %>:</td>
<td><%= @channel.description %></td>
</tr>
<tr>
<td class="left"><%= t(:entries) %>:</td>
<td><%= (@channel.last_entry_id) ? @channel.last_entry_id : '0' %></td>
</tr>
<tr>
<td class="left"><%= t(:created) %>:</td>
<td><%= l @channel.created_at, :format => :pretty %></td>