mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 00:34:19 +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 -%>
|
||||
2
app/views/contexts/_context_listing.m.erb
Normal file
2
app/views/contexts/_context_listing.m.erb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<% context = context_listing -%>
|
||||
<div id="ctx"><%= link_to context.name, context_path(context, :format => 'm') %><%= " (#{count_undone_todos_phrase(context)})".html_safe %></div>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<%
|
||||
# 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><%= link_to mobile_context.name, context_path(mobile_context, :format => 'm') %></h2>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/mobile_todo",
|
||||
:collection => @not_done,
|
||||
:locals => { :parent_container_type => "context" }-%>
|
||||
</ul>
|
||||
<% end -%>
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<% context = mobile_context_listing -%>
|
||||
<div id="ctx"><%= link_to context.name, context_path(context, :format => 'm') %><%= " (" + count_undone_todos_phrase(context) + ")" %></div>
|
||||
2
app/views/contexts/index.m.erb
Normal file
2
app/views/contexts/index.m.erb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<h2><%= t('contexts.visible_contexts') %></h2><%= render :partial => 'context_listing', :collection => @active_contexts %>
|
||||
<h2><%= t('contexts.hidden_contexts') %></h2><%= render :partial => 'context_listing', :collection => @hidden_contexts %>
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<h2><%= t('contexts.visible_contexts') %></h2><%= render :partial => 'mobile_context_listing', :collection => @active_contexts %>
|
||||
<h2><%= t('contexts.hidden_contexts') %></h2><%= render :partial => 'mobile_context_listing', :collection => @hidden_contexts %>
|
||||
|
|
@ -1,14 +1,12 @@
|
|||
<h2><%=@context.name%></h2>
|
||||
<%
|
||||
# select actions from this context
|
||||
@not_done = @not_done_todos.select {|t| t.context_id == @context.id }
|
||||
|
||||
if not @not_done.empty?
|
||||
if not @not_done.empty?
|
||||
# only show a context when there are actions in it
|
||||
%>
|
||||
<h2><%=@context.name%></h2>
|
||||
-%>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/mobile_todo",
|
||||
:collection => @not_done,
|
||||
:locals => { :parent_container_type => "context" }-%>
|
||||
<%= render :partial => @not_done, :locals => { :parent_container_type => "context" }-%>
|
||||
</ul>
|
||||
<% end -%>
|
||||
Loading…
Add table
Add a link
Reference in a new issue