From: william-bratches Date: Sat, 22 Mar 2014 02:51:00 +0000 (-0400) Subject: added pluraization to course and note lists X-Git-Tag: release-20150131~144^2~12^2~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d999ac60e2d6d880dae38e66530332772c77d8b;p=oweals%2Fkarmaworld.git added pluraization to course and note lists --- diff --git a/karmaworld/templates/courses/course_list_entry.html b/karmaworld/templates/courses/course_list_entry.html index ac70db0..e80244f 100644 --- a/karmaworld/templates/courses/course_list_entry.html +++ b/karmaworld/templates/courses/course_list_entry.html @@ -5,8 +5,8 @@ {{ course.get_popularity|stringformat:"010g" }} Updated {{ course.updated_at|date:"b d, o"|capfirst }} - {{ course.file_count }} Notes - {{ course.get_popularity }} Thanks + {{ course.file_count|pluralize }} Notes + {{ course.get_popularity|pluralize }} Thanks {% if course.department %}{{course.department.name}}: {% endif %}{{ course.name }} diff --git a/karmaworld/templates/notes/note_list_entry.html b/karmaworld/templates/notes/note_list_entry.html index 9a71c24..d19ca7e 100644 --- a/karmaworld/templates/notes/note_list_entry.html +++ b/karmaworld/templates/notes/note_list_entry.html @@ -1,7 +1,7 @@ {{ note.uploaded_at|date:"l M d o"|capfirst }} - {{ note.thanks }} + {{ note.thanks|pluralize }} {{ note.name }}