fix rebase with main

This commit is contained in:
Cayo Puigdefabregas 2025-01-31 17:11:51 +01:00
parent e7d958c550
commit 5cf51df952
2 changed files with 29 additions and 15 deletions

View file

@ -294,7 +294,6 @@ 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()

View file

@ -3,17 +3,32 @@
<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">
<table class="table">
<thead>
<tr>
<th scope="col">uuid</th>
<th scope="col">Did Document</th>
<th scope="col">{% trans "Date" %}</th>
</tr>
</thead>
<tbody>
{% for snap in object.evidences %} {% for snap in object.evidences %}
<div class="list-group-item"> <tr>
<div class="d-flex w-100 justify-content-between"> <td>
<small class="text-muted">{{ snap.created }}</small>
</div>
<p class="mb-1">
<a href="{% url 'evidence:details' snap.uuid %}">{{ snap.uuid }}</a> <a href="{% url 'evidence:details' snap.uuid %}">{{ snap.uuid }}</a>
</p> </td>
</div> <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 %} {% endfor %}
</div> </tbody>
</table>
</div> </div>
</div> </div>