From 6d999ac60e2d6d880dae38e66530332772c77d8b Mon Sep 17 00:00:00 2001 From: william-bratches Date: Fri, 21 Mar 2014 22:51:00 -0400 Subject: [PATCH] added pluraization to course and note lists --- 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..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 }} -- 2.25.1