pytask/templatetags/browse_helpers.py
changeset 546 6393b77c3c68
parent 506 db2edf922849
child 547 1bfa67f465b4
equal deleted inserted replaced
545:3a86d85333a3 546:6393b77c3c68
    13 
    13 
    14 register = template.Library()
    14 register = template.Library()
    15 
    15 
    16 
    16 
    17 @register.inclusion_tag('templatetags/_as_browse_textbooks.html')
    17 @register.inclusion_tag('templatetags/_as_browse_textbooks.html')
    18 def as_list_textbooks(textbooks, title):
    18 def as_list_tasks(tasks, title):
    19     """Returns a dictionary required to display the list of tasks.
    19     """Returns a dictionary required to display the list of tasks.
    20     """
    20     """
    21 
    21 
    22     return {
    22     return {
    23       'tasks': textbooks,
    23       'tasks': tasks,
    24       'title': title,
    24       'title': title.capitalize(),
    25       }
    25       }
    26 
    26 
    27 
    27 
    28 @register.inclusion_tag('templatetags/_as_modification_display.html')
    28 @register.inclusion_tag('templatetags/_as_modification_display.html')
    29 def as_modification_display(title, user, creation_datatime):
    29 def as_modification_display(title, user, creation_datatime):