From 469ba4847898491103618b614a1f88a6493c1605 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Thu, 15 May 2014 20:57:22 -0400 Subject: [PATCH] Indicate mturk keywords --- karmaworld/apps/notes/views.py | 1 + karmaworld/assets/css/note_course_pages.css | 4 ++++ karmaworld/templates/notes/note_keywords.html | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/notes/views.py b/karmaworld/apps/notes/views.py index d491cf3..349cd17 100644 --- a/karmaworld/apps/notes/views.py +++ b/karmaworld/apps/notes/views.py @@ -225,6 +225,7 @@ class NoteKeywordsView(FormView, SingleObjectMixin): keyword_object.note = self.get_object() keyword_object.word = word keyword_object.definition = definition + keyword_object.unreviewed = False keyword_object.save() diff --git a/karmaworld/assets/css/note_course_pages.css b/karmaworld/assets/css/note_course_pages.css index e5096c2..59c5c1d 100644 --- a/karmaworld/assets/css/note_course_pages.css +++ b/karmaworld/assets/css/note_course_pages.css @@ -170,6 +170,10 @@ button.add-note-btn { background-color: #ffdcdc; } +tr.unreviewed { + background-color: #ffdcdc !important; +} + .correct-label, .incorrect-label { padding-left: 0; diff --git a/karmaworld/templates/notes/note_keywords.html b/karmaworld/templates/notes/note_keywords.html index 483f3f5..ed2db36 100644 --- a/karmaworld/templates/notes/note_keywords.html +++ b/karmaworld/templates/notes/note_keywords.html @@ -4,7 +4,7 @@
{% if user.is_authenticated %}

These key terms and definitions have been defined by KarmaNotes users. - You can edit them for accuracy and add more if you like.

+ You can edit them for accuracy and add more if you like. Red rows indicate unreviewed entries.

{% else %}

These key terms and definitions have been defined by KarmaNotes users.

@@ -17,7 +17,7 @@ {% for keyword in keywords %} - + {{ keyword.word }} {% if keyword.definition %} -- 2.25.1