mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-14 00:16:15 +01:00
get login, mobile and notes features passing
This commit is contained in:
parent
7c935652fb
commit
005723cb4f
52 changed files with 167 additions and 196 deletions
14
app/views/contexts/_context.m.erb
Normal file
14
app/views/contexts/_context.m.erb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<%
|
||||
# select actions from this context
|
||||
@not_done = @not_done_todos.select {|t| t.context_id == context.id }
|
||||
|
||||
if not @not_done.empty?
|
||||
# only show a context when there are actions in it
|
||||
-%>
|
||||
<h2><%= link_to context.name, context_path(context, :format => 'm') %></h2>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/todo",
|
||||
:collection => @not_done,
|
||||
:locals => { :parent_container_type => "context" }-%>
|
||||
</ul>
|
||||
<% end -%>
|
||||
Loading…
Add table
Add a link
Reference in a new issue