From: Charles Connell Date: Sun, 2 Feb 2014 17:28:08 +0000 (-0500) Subject: Need to have disable versions of buttons always present X-Git-Tag: release-20150131~183 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c208853d76ee2a8a106554db68be00c0bfee903a;p=oweals%2Fkarmaworld.git Need to have disable versions of buttons always present --- diff --git a/karmaworld/templates/courses/course_detail.html b/karmaworld/templates/courses/course_detail.html index f539f02..43a9a07 100644 --- a/karmaworld/templates/courses/course_detail.html +++ b/karmaworld/templates/courses/course_detail.html @@ -65,8 +65,30 @@
- note_flag - note_flag + {% if user.is_authenticated %} + {% if already_flagged %} + course_flag + {% else %} + + course_flag + + {% endif %} + {% else %} + course_flag + {% endif %} + + course_flag +
diff --git a/karmaworld/templates/notes/note_detail.html b/karmaworld/templates/notes/note_detail.html index a1cdff8..83c7bec 100644 --- a/karmaworld/templates/notes/note_detail.html +++ b/karmaworld/templates/notes/note_detail.html @@ -70,6 +70,9 @@ note_flag {% endif %} + + note_flag +
{% if already_thanked %} @@ -84,6 +87,9 @@ note_thank {% endif %} + + note_thank +