update with changes from Production branch

This commit is contained in:
Lee Lawlor
2014-02-17 12:05:39 -05:00
parent 5b640cf9d8
commit a4937fb2e5
384 changed files with 14690 additions and 2242 deletions

View File

@ -0,0 +1,19 @@
<h2>Pipes</h2>
<%= link_to 'New Pipe', new_pipe_path %>
<br /><br />
<table class="nicetable">
<tr class="header"><td>ID</td><td>Name</td><td>Slug</td><td>URL</td><td>Date</td></tr>
<% @pipes.each do |m| %>
<tr<%= cycle('', raw(' class="stripe"')) %>>
<td><%= link_to m.id, channel_path(m.id) %></td>
<td><%= link_to m.name, channel_path(m.id) %></td>
<td><%= link_to m.slug, channel_path(m.id) %></td>
<td><%= m.url %></td>
<td><%= raw(m.created_at.strftime("%m/%d/%Y&nbsp;%I:%M%p")) %></td>
</tr>
<% end %>
</table>
<br />
<%= will_paginate @pipes %>

View File

@ -0,0 +1,30 @@
<h2>Add New Pipe</h2>
<%= form_for @pipe, :url => pipes_path do |f| %>
<table class="table_no_header">
<tr>
<td class="left">Name</td>
<td><%= f.text_field :name %></td>
</tr>
<tr>
<td class="left">Slug</td>
<td><%= f.text_field :slug %></td>
</tr>
<tr>
<td class="left">URL</td>
<td><%= f.text_field :url %></td>
</tr>
<tr>
<td class="left">Parse String</td>
<td><%= f.text_field :parse %></td>
</tr>
<tr>
<td class="left">Minutes to Cache</td>
<td><%= f.text_field :cache %></td>
</tr>
<tr>
<td class="left"></td>
<td><%= f.submit 'Create Pipe' %></td>
</tr>
</table>
<% end %>