[Opda-develop] OPDA/app/views/opml_feeds test.rhtml, NONE, 1.1 edit.rhtml, 1.2, 1.3 destroy_result.
Brought to you by:
digitalpodcast
Update of /cvsroot/opda/OPDA/app/views/opml_feeds In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1217/app/views/opml_feeds Added Files: test.rhtml edit.rhtml destroy_result.rhtml list.rhtml _opml_feed.rhtml show.rhtml new.rhtml _opml_feeds.rhtml Log Message: Moved opml_feeds out of admin --- NEW FILE: test.rhtml --- <%= debug(@feeds)%> --- NEW FILE: destroy_result.rhtml --- <html> OPML database cleaned! <%= link_to 'Parse', :action => 'parse' %> <%= link_to 'Back', :action => 'list' %> </html> --- NEW FILE: _opml_feeds.rhtml --- <table> <%= render :partial => 'opml_feed', :collection => @opml_feeds%> </table> --- NEW FILE: show.rhtml --- <% for column in OpmlFeed.content_columns %> <p> <b><%= column.human_name %>:</b> <%=h @opml_feed.send(column.name) %> </p> <% end %> <%= link_to 'Edit', :action => 'edit', :id => @opml_feed %> | <%= link_to 'Back', :action => 'list' %> --- NEW FILE: list.rhtml --- <div id="wideleftcontent"> <%= link_to 'Purge DB (Carefull!)', :action => 'destroy_all' %></br> <%= link_to 'Parse DB', :action => 'parse' %></br> <div id="wideleftcontent"> <h1><%= "Your OPML files".t %></h1> <%= render :partial => 'opml_feeds' %> <br /> </div> <!-- end wideleftcontent --> <%= link_to 'Previous page', { :page => @opml_feed_pages.current.previous } if @opml_feed_pages.current.previous %> <%= link_to 'Next page', { :page => @opml_feed_pages.current.next } if @opml_feed_pages.current.next %> <br /> <%= link_to 'New OPML Feed', :action => 'new' %> </ div> --- NEW FILE: _opml_feed.rhtml --- <tr> <td> <%=h opml_feed.title %> </td> <td> <%=h "URL: " + truncate(opml_feed.opml_url , length = 50, truncate_string = "...")%> </td> </tr> --- NEW FILE: new.rhtml --- <div id="wideleftcontent"> <h1><%="Add a new Directory".t%></h1> <p> Directories are stored in OPML format. typically this would be files with the .opml extension. You can import an OPML reference which is either a valid URL to an OPML file or an OPML file locally on your system. <br/> <br/> Press Import when you are done with selecting a file or pasting in the URL. </p> <br/> <%= form_tag( {:action => 'create'}, :multipart => true )%> <table> <tr> <td> <label for="opml_feed_name"><%= "Name".t %></label> </td> <td colspan='2'> <%= text_field 'opml', 'title', :size => "10" %><br/> <td> </tr> <tr> <td colspan='3'> <br/> </td> </tr> <td> <label for="file">Local Path</label> </td> <td colspan='2'> <%= file_field_tag 'file', :size => "70" %> </td> </tr> <tr> <td colspan='3'> <%= submit_tag "Import File" %> </td> </tr> <tr colspan='3'><td><br/><br/></td></tr> </tr> <td> <label for="url">URL: </label> </td> <td colspan='2'> <%= text_field 'opml', 'url', :size => "70" %> </td> </tr> <tr> <td colspan='3'> <%= submit_tag "Import URL" %> </td> </tr> </table> <%= end_form_tag %> <h3>Warning!</h3> <p> The channels in the OPML file can take some time to process. Sit back and enjoy our nice color schema. </p> <%= link_to 'Back', :action => 'list' %> </div> --- NEW FILE: edit.rhtml --- <h1>Editing opml_feed</h1> <%= start_form_tag :action => 'update', :id => @opml_feed %> <%= render :partial => 'form' %> <%= submit_tag 'Edit' %> <%= end_form_tag %> <%= link_to 'Show', :action => 'show', :id => @opml_feed %> | <%= link_to 'Back', :action => 'list' %> |