Browse Source

Use nth-of-type to get icon cell

Saves adding a class to every single row
pm2
Luke Childs 9 years ago
parent
commit
89b8eb40d3
  1. 2
      assets/style.css
  2. 2
      views/listing.html

2
assets/style.css

@ -147,7 +147,7 @@ td:first-child {
float: right;
}
table .icons {
table td:nth-of-type(6) {
letter-spacing: -0.4em;
}

2
views/listing.html

@ -27,7 +27,7 @@
<td>{{ node | bandwidth }}</td>
<td>{{ node | uptime }}</td>
<td>{{ node.country_name }}</td>
<td class="icons">
<td>
{% if node.flags.length %}
{% for flag in node.flags %}
<i class="icon-{{ flag | lower }}" title="{{ flag }}"><span class="hide">{{ flag }}</span></i>

Loading…
Cancel
Save