Use EJS templates for notes

This commit is contained in:
Tom Hughes 2012-10-13 18:06:29 +01:00
parent e3d5e3da52
commit 73b59c5859
5 changed files with 50 additions and 52 deletions

View file

@ -0,0 +1,11 @@
<p>
Move the marker to the correct position and<br/>
describe the problem in the box below:
</p>
<form action="#">
<input type="hidden" name="lon">
<input type="hidden" name="lat">
<textarea name="comment" cols="40" rows="10"></textarea>
<br/>
<input type="submit" name="add" value="Add Note" id="note-add">
</form>

View file

@ -0,0 +1,10 @@
<h2>Note <%- note.id %></h2>
<% note.comments.forEach(function (comment) { %>
<p>
<small class="deemphasize">
<%- comment.action %> by <%- comment.user %> at <%- comment.date %>
</small>
<br/>
<%- comment.text %>
</p>
<% }) %>