diff --git a/datasources/templates/datasources/datasource/audit.html b/datasources/templates/datasources/datasource/audit.html index ca0348fc187803f6f3b1a39a9c1ed4f6382bee0b..2a8a0f89afc73aaa0011f292c8221457c19850e8 100644 --- a/datasources/templates/datasources/datasource/audit.html +++ b/datasources/templates/datasources/datasource/audit.html @@ -29,23 +29,6 @@ <h4>Records</h4> - <table class="table"> - <thead> - <tr> - <th scope="col"></th> - </tr> - </thead> - <tbody> - {% for record in records %} - <tr> - <td>{{ record.to_json }}</td> - </tr> - {% empty %} - <tr> - <td>No records</td> - </tr> - {% endfor %} - </tbody> - </table> + {% include 'prov_entry/include_table.html' with objects=records %} {% endblock %} \ No newline at end of file diff --git a/provenance/templates/prov_entry/include_table.html b/provenance/templates/prov_entry/include_table.html new file mode 100644 index 0000000000000000000000000000000000000000..7f8124bdc3dbb38c2e4146d40d41b83c4ecc5eec --- /dev/null +++ b/provenance/templates/prov_entry/include_table.html @@ -0,0 +1,24 @@ +<table class="table"> + <thead> + <tr> + <th scope="col">ID</th> + <th scope="col">Entity</th> + <th scope="col">Agents</th> + <th scope="col">Activity</th> + </tr> + </thead> + <tbody> + {% for object in objects %} + <tr> + <td>{{ object.id }}</td> + <td>{{ object.entity }}</td> + <td>{{ object.agent }}</td> + <td>{{ object.activity }}</td> + </tr> + {% empty %} + <tr> + <td>No records</td> + </tr> + {% endfor %} + </tbody> +</table>