From c208853d76ee2a8a106554db68be00c0bfee903a Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sun, 2 Feb 2014 12:28:08 -0500 Subject: [PATCH] Need to have disable versions of buttons always present --- .../templates/courses/course_detail.html | 26 +++++++++++++++++-- karmaworld/templates/notes/note_detail.html | 6 +++++ 2 files changed, 30 insertions(+), 2 deletions(-) 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 +
-- 2.25.1