mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 13:15:17 +01:00
Fixed up viewing of notes on the 'Done' page. They can now be toggled just like on the main page.
Fixes #284. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@260 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
7b984328e3
commit
b78b0f4eca
2 changed files with 4 additions and 7 deletions
|
|
@ -14,12 +14,9 @@
|
|||
<%= " - was due on " + format_date( done.due ) %>
|
||||
<% end %>
|
||||
|
||||
<% if done.notes? %>
|
||||
<%= "<a href=\"javascript:Element.toggle('" + done.id.to_s + "')\" title=\"Show notes\">" +
|
||||
image_tag( "notes", :width=>"10", :height=>"10", :border=>"0") + "</a>" %>
|
||||
<% m_notes = sanitize(markdown( done.notes )) %>
|
||||
<%= "<div class=\"notes\" id=\"" + done.id.to_s + "\" style=\"display:none\">" + m_notes + "</div>" %>
|
||||
<% end %>
|
||||
<% if done.notes? -%>
|
||||
<%= toggle_show_notes( done ) %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
</div><!- End of display_box -->
|
||||
</div><!-- End of display_box -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue