Always allow staff to edit notes
[oweals/karmaworld.git] / karmaworld / templates / notes / note_base.html
index bb46f9d69832966926d6ee5f521a77c59d2ed90f..00bd48c744a72f690bf063879138f59aa035d715 100644 (file)
@@ -26,7 +26,6 @@
     var annotator_js_url = "{{ STATIC_URL }}js/annotator-full.min.js";
     var annotator_css_url = "{{ STATIC_URL }}css/annotator.min.css";
     var setup_ajax_url = "{{ STATIC_URL }}js/setup-ajax.js";
-    var note_edit_url = "{% url 'edit_note' note.id %}";
     var user_authenticated = {% if user.is_authenticated %}true{% else %}false{% endif %};
   </script>
   {% compress js %}
                 </button>
               {% endif %}
 
-              {% if note.user == request.user %}
+              {% if note.user == request.user or user.is_staff %}
                 <button id="edit-button" data-reveal-id="note-edit-dialog" class="modify-button"> <i class="fa fa-edit"></i> Edit This Note</button>&nbsp;&nbsp;
               {% endif %}
 
     <li data-id="keywords-tab-button" data-text="Awesome!" data-options="tip_location: top">
       <p>Keywords you define will appear here, and you can define new ones here too.</p>
     </li>
+    {% if note.thanks < 3 %}
+      <li data-id="thank-number" data-text="Awesome!" data-options="tip_location: top">
+        <p>Keywords and quizzes are automatically generated when a note gets {{ note.total_thanks_for_mturk }} thanks. This note needs {{ note.remaining_thanks_for_mturk }} more!</p>
+      </li>
+    {% endif %}
   </ol>
 
 {% endblock %}