Commit e71e98f8 authored by Philipp Winter's avatar Philipp Winter
Browse files

Display additional info if a relay is offline.

If a relay is offline, write 'Last Known Properties' instead of merely
'Properties' and display an additional field called 'Last Seen'.  That should
cause less confusion.
parent b3e4d40f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -55,8 +55,15 @@

    </div>
    <div class="span4">
    <% if (relay.get('running') === true) { %>
    <h3>Properties</h3>
    <dl>
    <% } else { %>
    <h3>Last Known Properties</h3>
    <dl>
    <dt><span class="tip" data-content="Timestamp when the relay was last seen in the consensus." data-original-title="Last seen">Last Seen</span></dt>
    <dd><%= relay.get('last_seen') %></dd>
    <% } %>

    <dt><span class="tip" data-content="20-byte unique identifier of the relay." data-original-title="Fingerprint">Fingerprint</span></dt>
    <dd><%= relay.get('fingerprint') %></dd>