mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
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:
parent
a80a7a4be0
commit
edaacf3d4f
1 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,11 @@
|
||||||
<div id="display_box_projects">
|
<div id="display_box_projects">
|
||||||
|
<% 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 -%>
|
<% for notes in @all_notes -%>
|
||||||
<div class="container" id="note-<%= notes.id %>-wrapper">
|
<div class="container" id="note-<%= notes.id %>-wrapper">
|
||||||
<%= render_partial "notes", notes %>
|
<%= render_partial "notes", notes %>
|
||||||
</div>
|
</div>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue