small edit to mobile notes to make icon only show if notes exist.

This commit is contained in:
tim madden 2010-08-05 22:52:34 +08:00 committed by Reinier Balt
parent 710e447e1c
commit 9c0da41aa3

View file

@ -13,7 +13,9 @@ end -%>
-%><span class="m_t">
<% 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' -%>
<%= "<span class=\"prj\"> (" +
link_to(mobile_todo.project.name, project_path(mobile_todo.project, :format => 'm')) +