editor: Hide comment header if there is nothing to show in it
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / comments / comment.html
index 47af2ce..ca15b77 100644 (file)
@@ -1,8 +1,10 @@
 <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>
     </div>
     <div class="toolbox">
-        <a href="#" class="edit-start-btn"><%= gettext('edit') %></a>
+        <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>