<div id="display_box">
	<div id="feeds">
	<div id="feedlegend">
		<h3>Legend:</h3>
	<dl>
		<dt><%= image_tag("feed-icon.png", :size => "16X16", :border => 0)%></dt><dd>RSS Feed</dd>
		<dt><span class="feed">TXT</span></dt><dd>Plain Text Feed</dd>
		<dt><span class="feed">iCal</span></dt><dd>iCal feed</dd>
	</dl>
	<p>Note: All feeds show only actions that have not been marked as done.</p>
	</div>
	<ul>
		<li>
      <%= 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
		</li>
		<li>
      <%= rss_formatted_link( { :controller => 'todos', :action => 'index' } ) %>
      <%= text_formatted_link( { :controller => 'todos', :action => 'index' } ) %>
			<%= ical_formatted_link( { :controller => 'todos', :action => 'index' } ) %>
			All actions
		</li>
		<li>
			<%= 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
		</li>
		<li>
      <%= 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
		</li>
		<li>
      <%= 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
		</li>
		<li>
			<%= rss_formatted_link({:controller => 'contexts', :action => 'index'}) %>
			<%= text_formatted_link({:controller => 'contexts', :action => 'index'}) %>
			All Contexts
		</li>
		<li>
			<%= rss_formatted_link({:controller => 'projects', :action => 'index'}) %>
			<%= text_formatted_link({:controller => 'projects', :action => 'index'}) %>
			All Projects
		</li>
		<li>
			<%= 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
		</li>
		<li><h4>Feeds for incomplete actions in a specific context:</h4>
			<ul>
				<% for context in @contexts %>
				  	<li>
					<%= 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 <strong><%=h context.name %></strong>
					</li>
				<% end %>
			</ul>
		</li>
		<li><h4>Feeds for incomplete actions in a specific project:</h4>
			<ul>
				<% for project in @projects %>
					<li>
            <%= 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 <strong><%=h project.name %></strong>
					</li>
				<% end %>
			</ul>
		</li>
	</ul>
	</div>
</div><!-- End of display_box -->

<div id="input_box">
  <%= render "sidebar/sidebar" %>
</div><!-- End of input box -->