1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00

Links in the disp_list page

This commit is contained in:
Steffo 2017-09-22 09:08:39 +02:00
parent 60d1f33c99
commit 85698f54f3
2 changed files with 6 additions and 6 deletions

View file

@ -64,11 +64,11 @@
<i class="fa fa-windows" <i class="fa fa-windows"
{% if "server" not in disp.lower() %} {% if "server" not in disp.lower() %}
style="color: style="color:
{% if "XP" in d[0].dispositivo.so %}#0046FF {% if "XP" in disp.so %}#0046FF
{% elif "Vista" in d[0].dispositivo.so %}#69797E {% elif "Vista" in disp.so %}#69797E
{% elif "7" in d[0].dispositivo.so %}#30C6CC {% elif "7" in disp.so %}#30C6CC
{% elif "8" in d[0].dispositivo.so %}#F03A17 {% elif "8" in disp.so %}#F03A17
{% elif "10" in d[0].dispositivo.so %}#0078D7 {% elif "10" in disp.so %}#0078D7
{% endif %};" {% endif %};"
{% endif %}></i> {% endif %}></i>
{% elif "linux" in disp.lower() or "ubuntu" in disp.lower() or "debian" in disp.lower() %} {% elif "linux" in disp.lower() or "ubuntu" in disp.lower() or "debian" in disp.lower() %}

View file

@ -25,7 +25,7 @@
{% for d in accessi %} {% for d in accessi %}
<tr> <tr>
<td>{{ d[0].dispositivo.tipo }}</td> <td>{{ d[0].dispositivo.tipo }}</td>
<td>{% for u in d %}<p>{{ u.impiegato.nomeimpiegato }}</p>{% endfor %}</td> <td>{% for u in d %}{% if u.iid != None %}<a href="{{ url_for("page_imp_details", iid=u.impiegato.iid) }}">{% endif %}{{ u.impiegato.nomeimpiegato }}{% if u.iid != None %}</a>{% endif %}{% if loop.index < d|length %}<br>{% endif %}{% endfor %}</td>
<td>{% if d[0].dispositivo.inv_ced %}{{ d[0].dispositivo.inv_ced }}{% endif %}</td> <td>{% if d[0].dispositivo.inv_ced %}{{ d[0].dispositivo.inv_ced }}{% endif %}</td>
<td> <td>
{% if "windows" in d[0].dispositivo.so.lower() %} {% if "windows" in d[0].dispositivo.so.lower() %}