szurubooru/public_html/templates/post-notes.tpl

32 lines
896 B
Smarty
Raw Normal View History

<div class="post-notes">
<% _.each(notes, function(note) { %>
<div class="post-note"
style="left: <%= note.left %>%;
top: <%= note.top %>%;
width: <%= note.width %>%;
height: <%= note.height %>%">
2014-10-25 15:02:46 +02:00
<div class="text-wrapper">
<div class="text">
2014-10-26 01:01:16 +02:00
<%= formatMarkdown(note.text) %>
</div>
</div>
2014-10-25 15:02:46 +02:00
</div>
<% }) %>
</div>
2014-10-26 01:01:16 +02:00
<form class="post-note-edit">
<textarea></textarea>
<div class="actions"><!--
--><% if (privileges.canEditPostNotes) { %><!--
--><button type="submit" name="sender" value="save">Save</button><!--
2014-11-16 10:41:12 +01:00
--><button type="submit" name="sender" value="preview">Preview</button><!--
2014-10-26 01:01:16 +02:00
--><% } %><!--
--><button type="submit" name="sender" value="cancel">Cancel</button><!--
--><% if (privileges.canDeletePostNotes) { %><!--
--><button type="submit" name="sender" value="remove">Remove</button><!--
--><% } %><!--
--></div>
</form>