Skip to content
Permalink
Browse files
Don't display country flag if country is not defined.
  • Loading branch information
RaphaelBergmann committed Jan 31, 2017
1 parent 4627254 commit a64701f7592a59f52e061554218e65d1df244e24
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/details/router.html
@@ -82,7 +82,7 @@ <h3>Last Known Properties</h3>
</dd>

<dt><span class="tip" data-content="Country as found in a GeoIP database by resolving the relay's first onion-routing address." data-original-title="Country">Country</span></dt>
<dd><img class="inline country" title="<%= relay.get('countryname') %>" alt="" src="img/cc/<%= relay.get('country') %>.png"/> <%= relay.get('countryname') %></dd>
<dd><% if (relay.get('country')) { %><img class="inline country" title="<%= relay.get('countryname') %>" alt="" src="img/cc/<%= relay.get('country') %>.png"/> <%= relay.get('countryname') %><% } else { %>Not defined.<% } %></dd>

<dt><span class="tip" data-content="Autonomous System Number" data-original-title="AS Number">AS Number</span></dt>
<dd><%= _.escape(relay.get('as_no')) %></dd>

0 comments on commit a64701f

Please sign in to comment.