major refactor of templates

This commit is contained in:
Rocky Duan
2012-08-19 00:59:43 -07:00
parent e49226e9e1
commit b4ec109dac
11 changed files with 157 additions and 162 deletions

View File

@@ -175,9 +175,3 @@ def get_annotated_content_infos(course_id, thread, user):
_annotate(child)
_annotate(thread)
return infos
def pluralize(singular_term, count):
if int(count) >= 2:
return singular_term + 's'
return singular_term