editor: canvas fix
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / comments / comment.html
index 68c14c1..ca15b77 100644 (file)
@@ -1,8 +1,10 @@
 <div class="comment">
 <div class="comment">
-    <div class="header">
-        <span class="author"><%= author %></span>
-        <span class="date"><%= date %></span>
-    </div>
+    <% if(author || date) { %>
+        <div class="header">
+            <span class="author"><%= author %></span>
+            <span class="date"><%= date %></span>
+        </div>
+    <% } %>
     <div style="clear: both"></div>
     <div class="content">
         <%= content %>
     <div style="clear: both"></div>
     <div class="content">
         <%= content %>
         <a href="#" class="edit-start-btn"><%= gettext('edit') %></a> -
         <a href="#" class="remove-btn"><%= gettext('remove') %></a>
     </div>
         <a href="#" class="edit-start-btn"><%= gettext('edit') %></a> -
         <a href="#" class="remove-btn"><%= gettext('remove') %></a>
     </div>
+    <div class="deleteDialog">
+        <div><%= gettext('Delete this comment?') %></div>
+        <div>
+            <button class="btn btn-mini deleteDialog-confirm"><%= gettext('Delete') %></button>
+            <button class="btn btn-mini deleteDialog-cancel"><%= gettext('Cancel') %></button>
+        </div>
+    </div>
 </div>
 </div>