public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
tracks / app / views / contexts / _mobile_context.rhtml
100644 15 lines (13 sloc) 0.462 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%
# select actions from this context
@not_done = @not_done_todos.select {|t| t.context_id == mobile_context.id }
 
if not @not_done.empty?
  # only show a context when there are actions in it
  -%>
<h2><%=mobile_context.name%></h2>
<table cellpadding="0" cellspacing="0" border="0" class="c">
<%= render :partial => "todos/mobile_todo",
           :collection => @not_done,
           :locals => { :parent_container_type => "context" }-%>
</table>
<% end -%>