From c3fa86fc36bf977b177955290930fb4eac9134fc Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 24 Jul 2008 17:20:53 +0200 Subject: [PATCH] reformat code in view for feedlist --- app/views/feedlist/index.html.erb | 170 +++++++++++++++--------------- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/app/views/feedlist/index.html.erb b/app/views/feedlist/index.html.erb index a75c01f8..5c611008 100644 --- a/app/views/feedlist/index.html.erb +++ b/app/views/feedlist/index.html.erb @@ -1,89 +1,89 @@
-
-
-

Legend:

-
-
<%= image_tag("feed-icon.png", :size => "16X16", :border => 0)%>
RSS Feed
-
TXT
Plain Text Feed
-
iCal
iCal feed
-
-

Note: All feeds show only actions that have not been marked as done.

-
-
    -
  • - <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> - <%= text_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> - <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> - Last 15 actions -
  • -
  • - <%= rss_formatted_link( { :controller => 'todos', :action => 'index' } ) %> - <%= text_formatted_link( { :controller => 'todos', :action => 'index' } ) %> - <%= ical_formatted_link( { :controller => 'todos', :action => 'index' } ) %> - All actions -
  • -
  • - <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> - <%= text_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> - <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> - Actions due today or earlier -
  • -
  • - <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> - <%= text_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> - <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> - Actions due in 7 days or earlier -
  • -
  • - <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :done => 7 }) %> - <%= text_formatted_link({ :controller => 'todos', :action => 'index', :done => 7 }) %> - Actions completed in the last 7 days -
  • -
  • - <%= rss_formatted_link({:controller => 'contexts', :action => 'index'}) %> - <%= text_formatted_link({:controller => 'contexts', :action => 'index'}) %> - All Contexts -
  • -
  • - <%= rss_formatted_link({:controller => 'projects', :action => 'index'}) %> - <%= text_formatted_link({:controller => 'projects', :action => 'index'}) %> - All Projects -
  • -
  • - <%= rss_formatted_link({:controller => 'projects', :action => 'index', :only_active_with_no_next_actions => true}) %> - <%= text_formatted_link({:controller => 'projects', :action => 'index', :only_active_with_no_next_actions => true}) %> - Active projects with no next actions -
  • -
  • - <%= text_formatted_link({:controller => 'projects', :action => 'index', :projects_and_actions => true}) %> - Active projects with their actions -
  • -
  • Feeds for incomplete actions in a specific context:

    -
      - <% for context in @contexts %> -
    • - <%= rss_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> - <%= text_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> - <%= ical_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> - Next actions in <%=h context.name %> -
    • - <% end %> -
    -
  • -
  • Feeds for incomplete actions in a specific project:

    -
      - <% for project in @projects %> -
    • - <%= rss_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> - <%= text_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> - <%= ical_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> - Next actions for <%=h project.name %> -
    • - <% end %> -
    -
  • -
-
+
+
+

Legend:

+
+
<%= image_tag("feed-icon.png", :size => "16X16", :border => 0)%>
RSS Feed
+
TXT
Plain Text Feed
+
iCal
iCal feed
+
+

Note: All feeds show only actions that have not been marked as done.

+
+
    +
  • + <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> + <%= text_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> + <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :limit => 15 }) %> + Last 15 actions +
  • +
  • + <%= rss_formatted_link( { :controller => 'todos', :action => 'index' } ) %> + <%= text_formatted_link( { :controller => 'todos', :action => 'index' } ) %> + <%= ical_formatted_link( { :controller => 'todos', :action => 'index' } ) %> + All actions +
  • +
  • + <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> + <%= text_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> + <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :due => 0 }) %> + Actions due today or earlier +
  • +
  • + <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> + <%= text_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> + <%= ical_formatted_link({ :controller => 'todos', :action => 'index', :due => 6 }) %> + Actions due in 7 days or earlier +
  • +
  • + <%= rss_formatted_link({ :controller => 'todos', :action => 'index', :done => 7 }) %> + <%= text_formatted_link({ :controller => 'todos', :action => 'index', :done => 7 }) %> + Actions completed in the last 7 days +
  • +
  • + <%= rss_formatted_link({:controller => 'contexts', :action => 'index'}) %> + <%= text_formatted_link({:controller => 'contexts', :action => 'index'}) %> + All Contexts +
  • +
  • + <%= rss_formatted_link({:controller => 'projects', :action => 'index'}) %> + <%= text_formatted_link({:controller => 'projects', :action => 'index'}) %> + All Projects +
  • +
  • + <%= rss_formatted_link({:controller => 'projects', :action => 'index', :only_active_with_no_next_actions => true}) %> + <%= text_formatted_link({:controller => 'projects', :action => 'index', :only_active_with_no_next_actions => true}) %> + Active projects with no next actions +
  • +
  • + <%= text_formatted_link({:controller => 'projects', :action => 'index', :projects_and_actions => true}) %> + Active projects with their actions +
  • +
  • Feeds for incomplete actions in a specific context:

    +
      + <% for context in @contexts %> +
    • + <%= rss_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> + <%= text_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> + <%= ical_formatted_link({ :controller=> 'todos', :action => 'index', :context_id => context.to_param }) %> + Next actions in <%=h context.name %> +
    • + <% end %> +
    +
  • +
  • Feeds for incomplete actions in a specific project:

    +
      + <% for project in @projects %> +
    • + <%= rss_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> + <%= text_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> + <%= ical_formatted_link({ :controller=> 'todos', :action => 'index', :project_id => project.to_param }) %> + Next actions for <%=h project.name %> +
    • + <% end %> +
    +
  • +
+