mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-17 20:58:09 +01:00
Cleanup sidebar views and markup Minor cleanup to make html more valid. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@368 a4c988fc-2ded-0310-b66e-134b36920a42
82 lines
No EOL
2.4 KiB
Text
82 lines
No EOL
2.4 KiB
Text
<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_feed_link({ :limit => 15 }) %>
|
|
<%= text_feed_link({ :limit => 15 }) %>
|
|
<%= ical_feed_link({ :limit => 15 }) %>
|
|
Last 15 actions
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link %>
|
|
<%= text_feed_link %>
|
|
<%= ical_feed_link %>
|
|
All actions
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link({ :due => 0 }) %>
|
|
<%= text_feed_link({ :due => 0 }) %>
|
|
<%= ical_feed_link({ :due => 0 }) %>
|
|
Actions due today or earlier
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link({ :due => 6 }) %>
|
|
<%= text_feed_link({ :due => 6 }) %>
|
|
<%= ical_feed_link({ :due => 6 }) %>
|
|
Actions due in 7 days or earlier
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link({ :done => 7 }) %>
|
|
<%= text_feed_link({ :done => 7 }) %>
|
|
Actions completed in the last 7 days
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link({ :action => 'list_contexts_only', :feedtype => 'rss' }) %>
|
|
<%= text_feed_link({ :action => 'list_contexts_only', :feedtype => 'text' }) %>
|
|
All Contexts
|
|
</li>
|
|
<li>
|
|
<%= rss_feed_link({ :action => 'list_projects_only', :feedtype => 'rss' }) %>
|
|
<%= text_feed_link({ :action => 'list_projects_only', :feedtype => 'text' }) %>
|
|
All Projects
|
|
</li>
|
|
<li><h4>Feeds for uncompleted actions in a specific context:</h4>
|
|
<ul>
|
|
<% for context in @contexts %>
|
|
<li>
|
|
<%= rss_feed_link({ :context => context }) %>
|
|
<%= text_feed_link({ :context => context }) %>
|
|
<%= ical_feed_link({ :context => context }) %>
|
|
Next actions in <strong><%=h context.name %></strong>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</li>
|
|
<li><h4>Feeds for uncompleted actions in a specific project:</h4>
|
|
<ul>
|
|
<% for project in @projects %>
|
|
<li>
|
|
<%= rss_feed_link({ :project => project }) %>
|
|
<%= text_feed_link({ :project => project }) %>
|
|
<%= ical_feed_link({ :project => project }) %>
|
|
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 --> |