aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-06 17:44:31 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-06 17:48:21 +0100
commit4d63abf5a59e308f9b604d887209be2931cdecf6 (patch)
tree7cbd76f87fe978128a617904fbd650ffd104fadf
parente7a2abd98afd0418e7e892b3e5f0b38222cbb6c4 (diff)
add class if draft report has a location
-rw-r--r--www/templates/en/reports.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/templates/en/reports.html b/www/templates/en/reports.html
index 45c1dc0..e2ab948 100644
--- a/www/templates/en/reports.html
+++ b/www/templates/en/reports.html
@@ -8,6 +8,6 @@
</div>
<ul>
- <% drafts.each(function(draft) { if ( draft ) { print( '<li id="' + draft.id + '">' + draft.description() + ' <a class="del_report">X</a> <a class="use_report">&#8594;</a></li>' ); } else { print( '<li>no/li<>'); } } ); %>
+ <% drafts.each(function(draft) { if ( draft ) { print( '<li id="' + draft.id + '"' + ( draft.get('lat') ? ' class="with_location"' : '' ) + '>' + draft.description() + ( draft.get('lat') ? ' L' : '' ) + ' <a class="del_report">X</a> <a class="use_report">&#8594;</a></li>' ); } else { print( '<li>no/li<>'); } } ); %>
</ul>
</div>