From 816ba32b257a774feda22a4250f810c2544694f1 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Fri, 9 Sep 2016 15:50:55 +0100 Subject: [PATCH] add id field containg obj id to table if available useful for finding out a notification ID when investigating support issues --- app/templates/components/table.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/components/table.html b/app/templates/components/table.html index bf8893592..21a73f185 100644 --- a/app/templates/components/table.html +++ b/app/templates/components/table.html @@ -28,7 +28,7 @@ {% call mapping_table(caption, field_headings, field_headings_visible, caption_visible) %} {% for item in items %} - {% call row() %} + {% call row(item.id) %} {{ parent_caller(item, loop.index + 1) }} {% endcall %} {% endfor %} @@ -43,8 +43,8 @@ {%- endmacro %} -{% macro row() -%} - +{% macro row(id=None) -%} + {{ caller() }} {%- endmacro %}