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>
{% 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 %}