From 9c0da41aa398998ca34c84093468855e92bb85bf Mon Sep 17 00:00:00 2001 From: tim madden Date: Thu, 5 Aug 2010 22:52:34 +0800 Subject: [PATCH] small edit to mobile notes to make icon only show if notes exist. --- app/views/todos/_mobile_todo.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/todos/_mobile_todo.rhtml b/app/views/todos/_mobile_todo.rhtml index 39a705df..c9b187d2 100644 --- a/app/views/todos/_mobile_todo.rhtml +++ b/app/views/todos/_mobile_todo.rhtml @@ -13,7 +13,9 @@ end -%> -%> <% end -%> <%= date_span -%> <%= link_to mobile_todo.description, todo_path(mobile_todo, :format => 'm') -%> +<% if mobile_todo.notes? %> <%= link_to(image_tag("mobile_notes.png", :border => "0"), mobile_todo_show_notes_path(mobile_todo, :format => 'm')) -%> +<% end %> <% if parent_container_type == 'context' or parent_container_type == 'tag' -%> <%= " (" + link_to(mobile_todo.project.name, project_path(mobile_todo.project, :format => 'm')) +