"""
Models for the courses django app.
- Handles courses, and their related modelsl
+ Handles courses, and their related models
Courses are the first class object, they contain notes.
Courses have a manytoone relation to schools.
"""
<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{{ 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-4 columns large-2 large-offset-2 slim"><span>{{ course.file_count }} Note{{ course.file_count|pluralize }}</span></td>
+ <td class="small-4 columns large-2 large-offset-1 slim"><span>{{ course.get_popularity }} Thank{{ 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>
<tr>
<td class="no-display"><!-- this spot solely for the Sort By header --></td>
- <td class="no-display">{{ note.thanks|stringformat:"010g" }}</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"><span>{{ note.thanks }} Thanks{{ note.thanks|pluralize }}</span></td></td>
+ <td class="small-4 columns large-2 large-offset-2 slim"><span>{{ note.thanks }} Thank{{ note.thanks|pluralize }}</span></td>
<td class="small-12 large-5 columns">
<a href="{{ note.get_absolute_url }}">{{ note.name }}</a>