add icons to gateways

master
alice 4 years ago
parent baf7c45022
commit be27dbbfec

@ -910,6 +910,21 @@ a.home-signup-button {
z-index: 200;
}
.no-p2p, .no-ipv6 {
display: inline-block;
font-weight: bold;
font-size: 0.7em;
text-align: center;
line-height: 0.9;
margin: 0 0.2em;
}
.no-p2p {
color: #88171a;
}
.no-ipv6 {
color: #555;
}
/***************************************************/
@ -1160,6 +1175,34 @@ div.ticket-message-private {
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
font-family: 'Poiret One';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/poiret_one-0.woff2') format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'Poiret One';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/poiret_one-1.woff2') format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poiret One';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/poiret_one-2.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/***************************************************/
/********************* Icons */

@ -17,7 +17,15 @@
</thead>
<tbody>
{% for country, d in locations %}
<tr><td class="left">{{ d.country_name }}</td>
<tr><td class="left">
{{ d.country_name }}
{% if d.tags.no_p2p %}
<span class="no-p2p" title="{% trans 'BitTorrent on public trackers is not allowed on this location' %}">NO<br />P2P</span>
{% endif %}
{% if d.tags.no_ipv6 %}
<span class="no-ipv6" title="{% trans 'IPv6 is not available on this location ' %}">NO<br />IPv6</span>
{% endif %}
</td>
<td class="left host_line">
<span class="host_name">{{ d.hostname }}</span>
</td>

Loading…
Cancel
Save