Skip to content

Commit

Permalink
Merge pull request #56 from SunbirdAI/uptime
Browse files Browse the repository at this point in the history
added last seen to device list view
  • Loading branch information
yigagilbert authored Mar 18, 2024
2 parents e2871ae + 5702341 commit 16ce263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions templates/devices/device_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ <h4>Metric Files</h4>
<ul><a href="{{ metric_file.text_file_url }}" target="_blank">{{ metric_file.filename }}</a> upload at
{{ metric_file.time_uploaded }}</ul>
{% endfor %}
{# <div class="card-title">
<h4>{{ device.device_id }} Metrics (Latest 10 or less)</h4>
</div>#}
{# <table class="table table-hover">#}
{# <thead>#}
{# <tr>#}
Expand Down
2 changes: 2 additions & 0 deletions templates/devices/device_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<th scope="col">PHONE NUMBER</th>
<th scope="col">VERSION NUMBER</th>
<th scope="col">PRODUCTION STAGE</th>
<th scope="col">LAST SEEN</th>
<th scope="col"></th>
</tr>
</thead>
Expand All @@ -37,6 +38,7 @@
<td>{{ device.phone_number }}</td>
<td>{{ device.version_number }}</td>
<td>{{ device.production_stage }}</td>
<td>{{ device.lastseen|default:"N/A" }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 16ce263

Please sign in to comment.