]> git.parisson.com Git - teleforma.git/commitdiff
Add missing templatetags
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 5 Jun 2023 08:33:12 +0000 (10:33 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 5 Jun 2023 08:33:12 +0000 (10:33 +0200)
teleforma/templatetags/webclass.py

index 8bdb649a6caf0ea6230e59f42f68d4ddf9428311..07f5e0acbfc5a2f6c8de8c529ab078e69a879f10 100644 (file)
@@ -12,3 +12,9 @@ def add_records_links(context):
     return {
         'periods':periods,
     }
+
+@register.inclusion_tag('webclass/webclass_record.html', takes_context=True)
+def webclass_record(context, record):
+    return {
+        'record':record
+    }