fix rebase with main
This commit is contained in:
parent
e7d958c550
commit
5cf51df952
|
@ -294,8 +294,7 @@ class Device:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def version(self):
|
def version(self):
|
||||||
if not self.last_evidence:
|
self.get_last_evidence()
|
||||||
self.get_last_evidence()
|
|
||||||
return self.last_evidence.get_version()
|
return self.last_evidence.get_version()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -1,19 +1,34 @@
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="tab-pane fade" id="evidences">
|
<div class="tab-pane fade" id="evidences">
|
||||||
<h5 class="card-title">{% trans 'List of evidences' %}</h5>
|
<h5 class="card-title">{% trans 'List of evidences' %}</h5>
|
||||||
<div class="list-group col-6">
|
<div class="list-group col">
|
||||||
{% for snap in object.evidences %}
|
<table class="table">
|
||||||
<div class="list-group-item">
|
<thead>
|
||||||
<div class="d-flex w-100 justify-content-between">
|
<tr>
|
||||||
<small class="text-muted">{{ snap.created }}</small>
|
<th scope="col">uuid</th>
|
||||||
</div>
|
<th scope="col">Did Document</th>
|
||||||
<p class="mb-1">
|
<th scope="col">{% trans "Date" %}</th>
|
||||||
<a href="{% url 'evidence:details' snap.uuid %}">{{ snap.uuid }}</a>
|
</tr>
|
||||||
</p>
|
</thead>
|
||||||
</div>
|
<tbody>
|
||||||
{% endfor %}
|
{% for snap in object.evidences %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="{% url 'evidence:details' snap.uuid %}">{{ snap.uuid }}</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if snap.did_document %}
|
||||||
|
<a href="{{ snap.did_document }}" target="_blank">DID</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<small class="text-muted">{{ snap.created }}</small>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in a new issue