Tweak versioning templates to allow ID overrides

Asset specific templates begone. Still need to bring back the ID formatting for the Rigboard.
This commit is contained in:
2020-04-06 14:59:10 +01:00
parent d216dd4c74
commit 176324ed79
11 changed files with 35 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
<div class="pt-2">
<a href="{% url target object.pk %}" title="View Revision History">
<a href="{% url target id|default:object.pk %}" title="View Revision History">
Last edited {{ object.last_edited_at|default:'never' }} by {{ object.last_edited_by.name|default:'System' }}
</a>
</div>