diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index ec70762e..fa1b9d8b 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -117,7 +117,7 @@ module TodosHelper "" + link_to(t.name, {:action => "tag", :controller => "todos", :id => t.name+".m"}) + ""}.join('') - "#{tag_list}" + if not tag_list.empty? then "#{tag_list}" end end def deferred_due_date diff --git a/app/views/contexts/_mobile_context.rhtml b/app/views/contexts/_mobile_context.rhtml index 6510aeb4..71c3945d 100644 --- a/app/views/contexts/_mobile_context.rhtml +++ b/app/views/contexts/_mobile_context.rhtml @@ -6,9 +6,9 @@ if not @not_done.empty? # only show a context when there are actions in it -%>

<%=mobile_context.name%>

- +
<%= render :partial => "todos/mobile_todo", :collection => @not_done, :locals => { :parent_container_type => "context" }-%>
-<% end -%> \ No newline at end of file +<% end -%> diff --git a/app/views/todos/_mobile_todo.rhtml b/app/views/todos/_mobile_todo.rhtml index fafdd164..8537d98d 100644 --- a/app/views/todos/_mobile_todo.rhtml +++ b/app/views/todos/_mobile_todo.rhtml @@ -4,8 +4,7 @@ if mobile_todo.starred? else bullet = "» " end -%> -
-<%= bullet %><% +<%= bullet %><% if mobile_todo.completed? -%> <% else @@ -23,4 +22,4 @@ end -%> ")" -%> <% end -%> <%= tag_list_mobile -%> -
\ No newline at end of file + diff --git a/public/stylesheets/mobile.css b/public/stylesheets/mobile.css index dc7a74f0..f51b46db 100644 --- a/public/stylesheets/mobile.css +++ b/public/stylesheets/mobile.css @@ -60,10 +60,6 @@ h4.notice { color: #007E00; } -div.t { - padding-left:5px; -} - span.tag { font-size: XX-small; background-color: #CCE7FF; @@ -125,4 +121,8 @@ span.prj, span.ctx{ .errors { background: #FFC2C2; -} \ No newline at end of file +} + +table.c { + margin-left: 5px; +}