Use EJS templates for notes
This commit is contained in:
parent
e3d5e3da52
commit
73b59c5859
5 changed files with 50 additions and 52 deletions
11
app/assets/javascripts/templates/notes/new.jst.ejs
Normal file
11
app/assets/javascripts/templates/notes/new.jst.ejs
Normal 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>
|
10
app/assets/javascripts/templates/notes/show.jst.ejs
Normal file
10
app/assets/javascripts/templates/notes/show.jst.ejs
Normal 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>
|
||||
<% }) %>
|
Loading…
Add table
Add a link
Reference in a new issue