From 141d2449b1f03d0e9a5d31555c1b44210b4bf697 Mon Sep 17 00:00:00 2001 From: william-bratches Date: Sat, 22 Mar 2014 02:08:12 -0400 Subject: [PATCH] Fix for issue 352 - adds dynamic pluralization. --- karmaworld/templates/courses/course_list_entry.html | 4 ++-- karmaworld/templates/notes/note_list_entry.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }} -- 2.25.1