Fix for issue 352 - adds dynamic pluralization.
authorwilliam-bratches <williambratches@gmail.com>
Sat, 22 Mar 2014 06:08:12 +0000 (02:08 -0400)
committerwilliam-bratches <williambratches@gmail.com>
Sat, 22 Mar 2014 06:08:12 +0000 (02:08 -0400)
karmaworld/templates/courses/course_list_entry.html
karmaworld/templates/notes/note_list_entry.html

index ac70db09e51434a47772388292a712a3ce46aa75..7c54f087a8a80c4f8e294aa8ea4477a762399935 100644 (file)
@@ -5,8 +5,8 @@
   <td class="no-display">{{ course.get_popularity|stringformat:"010g" }}</td>
 
   <td class="small-8 columns large-4 slim"><span>Updated {{ course.updated_at|date:"b d, o"|capfirst }}</span></td>
-  <td class="small-4 columns large-2 large-offset-2 slim"><span>{{ course.file_count }} Notes</span></td>
-  <td class="small-4 columns large-2 large-offset-1 slim"><span>{{ course.get_popularity }} Thanks</span></td>
+  <td class="small-4 columns large-2 large-offset-2 slim"><span>{{ course.file_count }} Notes{{ course.file_count|pluralize }}</span></td>
+  <td class="small-4 columns large-2 large-offset-1 slim"><span>{{ course.get_popularity }} Thanks{{ course.get_popularity|pluralize }}</span></td>
 
   <td class="small-12 large-5 columns">
     <a href="{{ course.get_absolute_url }}">{% if course.department %}{{course.department.name}}: {% endif %}{{ course.name }}</a> 
index 9a71c246c798b228234d166759a4ae21cf27ab7e..05c1814abf0ad49f5f1059ddc2deb4dae6110175 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
   <td class="no-display"><!-- this spot solely for the Sort By header --></td>
   <td class="small-8 columns large-4 slim">{{ note.uploaded_at|date:"l M d o"|capfirst }}</td>
-  <td class="small-4 columns large-2 large-offset-2 slim">{{ note.thanks }}</td>
+  <td class="small-4 columns large-2 large-offset-2 slim"><span>{{ note.thanks }} Thanks{{ note.thanks|pluralize }}</span></td></td>
 
   <td class="small-12 large-5 columns">
     <a href="{{ note.get_absolute_url }}">{{ note.name }}</a>