77{% block specific_content %}
88 < div class ="container-fluid main sublevelmain " style ="overflow-x: auto; ">
99 < h2 class ="divideheader ">
10- Computere
10+ Computere
1111 < span class ="ms-3 badge bg-secondary "> Aktiverede: {{ activated_pcs }} / {{ total_pcs }}</ span >
1212 {# Originally this was online / activated, but it turns out a computer that isn't activated can still be online #}
1313 < span class ="ms-3 badge bg-secondary "> Online: {{ online_pcs }} / {{ total_pcs }}</ span >
@@ -25,8 +25,8 @@ <h2 class="divideheader">
2525 </ tr >
2626 </ thead >
2727 < tbody >
28- {% for pc in ls_pcs %}
29- < tr class ="click-list--item ">
28+ {% for pc in ls_pcs %}
29+ < tr class ="click-list--item ">
3030 < td >
3131 < span style ="display: none; "> {{pc.name}}</ span > <!-- Used to ensure sorting by pcname rather than uid -->
3232 < strong > < a href ="{% url 'computer' site_uid=site.uid pc_uid=pc.uid %} "> {{ pc.name }}</ a > </ strong >
@@ -40,22 +40,22 @@ <h2 class="divideheader">
4040 < td > {{ pc.location }}</ td >
4141 < td >
4242 {% if pc.online %}
43- < span class ="badge bg-success "> Online</ span >
43+ < span class ="badge bg-success "> Online</ span >
4444 {% elif pc.is_activated %}
45- < span class ="badge bg-danger "> Offline</ span >
45+ < span class ="badge bg-danger "> Offline</ span >
4646 {% endif %}
4747 </ td >
4848 < td > {% if pc.last_seen %}{{ pc.last_seen|timesince }} siden ({{ pc.last_seen }}) {% else %}Aldrig{% endif %}</ td >
4949 < td >
50- {% if pc.security_events.latest_event %}
51- {{ pc.security_events.latest_event.reported_time }}
52- {% else %}
53- Aldrig
54- {% endif %}
50+ {% if pc.security_events.latest_event %}
51+ {{ pc.security_events.latest_event.reported_time }}
52+ {% else %}
53+ Aldrig
54+ {% endif %}
5555 </ td >
56- </ tr >
56+ </ tr >
5757 {% endfor %}
5858 </ tbody >
59- </ table >
59+ </ table >
6060 </ div >
6161{% endblock %}
0 commit comments