Broke out the table column templates into individual template files

This commit is contained in:
2023-06-05 16:04:56 +01:00
parent 83bf9a7307
commit f92bb5780a
24 changed files with 453 additions and 171 deletions

View File

@@ -0,0 +1,9 @@
<script id="{{table.id}}-column-via-roles" type="text/x-handlebars-template">
{% verbatim %}
<td>
{{#each row.roles_via }}
<a href="{% endverbatim %}{# Handlebars can't access variables in the global scope, so we have to use Twig to insert the base url #}{{site.uri.public}}{% verbatim %}/roles/r/{{this.slug}}" class="label label-primary" title="{{this.description}}">{{this.name}}</a>
{{/each}}
</td>
{% endverbatim %}
</script>