<div id="course_actions" class="large-3 medium-6 small-12 columns small-centered">
<div class="row">
<div class="small-12 column center">
- <a href="#" id="flag-button" {% if already_flagged %} class="hide" {% endif %}><img src="{{ STATIC_URL }}img/note_flag.png" alt="note_flag" width="25" height="35"/></a>
- <a href="#" id="flag-button-disabled" {% if not already_flagged %} class="hide" {% endif %}><img src="{{ STATIC_URL }}img/note_flag_disabled.png" alt="note_flag" width="25" height="35"/></a>
+ {% if user.is_authenticated %}
+ {% if already_flagged %}
+ <img src="{{ STATIC_URL }}img/note_flag_disabled.png"
+ alt="course_flag"
+ width="25" height="35"
+ data-ot="You've already flagged this course"
+ {% include 'partial/opentip_settings.html' %}
+ class="opentip" />
+ {% else %}
+ <a href="#" id="flag-button">
+ <img src="{{ STATIC_URL }}img/note_flag.png" alt="course_flag" width="25" height="35" />
+ </a>
+ {% endif %}
+ {% else %}
+ <img src="{{ STATIC_URL }}img/note_flag_disabled.png"
+ alt="course_flag"
+ width="25" height="35"
+ data-ot="You need to log in to flag a course"
+ {% include 'partial/opentip_settings.html' %}
+ class="opentip" />
+ {% endif %}
+ <a href="#" id="flag-button-disabled" class="hide">
+ <img src="{{ STATIC_URL }}img/note_flag_disabled.png" alt="course_flag" width="25" height="35" />
+ </a>
</div>
</div>
</div><!-- /note_actions -->
<img src="{{ STATIC_URL }}img/note_flag.png" alt="note_flag" width="25" height="35" />
</a>
{% endif %}
+ <a href="#" id="flag-button-disabled" class="hide">
+ <img src="{{ STATIC_URL }}img/note_flag_disabled.png" alt="note_flag" width="25" height="35" />
+ </a>
</div>
<div class="small-4 column">
{% if already_thanked %}
<img src="{{ STATIC_URL }}img/note_thank.png" alt="note_thank" width="34" height="34"/>
</a>
{% endif %}
+ <a href="#" id="thank-button-disabled" class="hide">
+ <img src="{{ STATIC_URL }}img/note_thank_disabled.png" alt="note_thank" width="34" height="34"/>
+ </a>
</div>
<div class="small-4 column">
<a id="note-download-button" href="{{ note.fp_file }}">