From: william-bratches Date: Sat, 22 Mar 2014 06:08:12 +0000 (-0400) Subject: Fix for issue 352 - adds dynamic pluralization. X-Git-Tag: release-20150131~144^2~12^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=141d2449b1f03d0e9a5d31555c1b44210b4bf697;p=oweals%2Fkarmaworld.git Fix for issue 352 - adds dynamic pluralization. --- diff --git a/karmaworld/templates/courses/course_list_entry.html b/karmaworld/templates/courses/course_list_entry.html index ac70db0..7c54f08 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 }} Notes{{ course.file_count|pluralize }} + {{ course.get_popularity }} Thanks{{ course.get_popularity|pluralize }} {% 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..05c1814 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 }} Thanks{{ note.thanks|pluralize }} {{ note.name }}