Fixed the notes page so that it doesn't raise an error if there are no notes. It shows a message that there are no notes, and that you can add notes from the project pages.

Fixes #247.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@217 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2006-04-09 11:03:18 +00:00
parent a80a7a4be0
commit edaacf3d4f

View file

@ -1,7 +1,11 @@
<div id="display_box_projects">
<% for notes in @all_notes -%>
<div class="container" id="note-<%= notes.id %>-wrapper">
<%= render_partial "notes", notes %>
</div>
<% if @all_notes.empty? -%>
<div class="message"><p>Currently there are no notes: add notes to projects from individual project pages.</p></div>
<% else -%>
<% for notes in @all_notes -%>
<div class="container" id="note-<%= notes.id %>-wrapper">
<%= render_partial "notes", notes %>
</div>
<% end -%>
<% end -%>
</div>