Browse Source

Split node page up into sections

pm2
Luke Childs 9 years ago
parent
commit
92aebd5550
  1. 74
      views/node.html

74
views/node.html

@ -15,8 +15,8 @@
</section>
</div>
<section class="details">
<h3>Details</h3>
<section class="overview">
<h3>Overview</h3>
<dl>
{% if node.nickname %}
<dt>Nickname</dt>
@ -30,16 +30,22 @@
<dt>Hashed Fingerprint</dt>
<dd>{{ node.hashed_fingerprint }}</dd>
{% endif %}
{% if node.advertised_bandwidth %}
<dt>Advertised Bandwidth</dt>
<dd>{{ node | bandwidth }}</dd>
{% endif %}
{% if node.flags.length %}
<dt>Flags</dt>
{% for flag in node.flags %}
<dd>{{ flag }}</dd>
{% endfor %}
{% endif %}
{% if node.country_name %}
<dt>Country</dt>
<dd>{{ node.country_name }}</dd>
{% endif %}
</dl>
</section>
<section class="config">
<h3>Config</h3>
<dl>
{% if node.or_addresses.length %}
<dt>Or Addresses</dt>
{% for address in node.or_addresses %}
@ -50,49 +56,55 @@
<dt>Dir Address</dt>
<dd>{{ node.dir_address }}</dd>
{% endif %}
{% if node.as_number %}
<dt>AS Number</dt>
<dd>{{ node.as_number }}</dd>
{% endif %}
{% if node.as_name %}
<dt>AS Name</dt>
<dd>{{ node.as_name }}</dd>
{% endif %}
{% if node.consensus_weight %}
<dt>Consensus Weight</dt>
<dd>{{ node.consensus_weight }}</dd>
{% endif %}
{% if node.transports.length %}
<dt>Transport Protocols</dt>
{% for transportProtocol in node.transports %}
<dd>{{ transportProtocol }}</dd>
{% endfor %}
{% endif %}
{% if node.exit_policy.length %}
<dt>Exit Policy</dt>
{% for rule in node.exit_policy %}
<dd>{{ rule }}</dd>
{% endfor %}
{% endif %}
{% if node.host_name %}
<dt>Hostname</dt>
<dd>{{ node.host_name }}</dd>
{% endif %}
{% if node.advertised_bandwidth %}
<dt>Advertised Bandwidth</dt>
<dd>{{ node | bandwidth }}</dd>
{% if node.as_number %}
<dt>AS Number</dt>
<dd>{{ node.as_number }}</dd>
{% endif %}
{% if node.contact %}
<dt>Contact</dt>
<dd>{{ node.contact }}</dd>
{% if node.as_name %}
<dt>AS Name</dt>
<dd>{{ node.as_name }}</dd>
{% endif %}
{% if node.platform %}
<dt>Platform</dt>
<dd>{{ node.platform }}</dd>
{% endif %}
{% if node.transports.length %}
<dt>Transport Protocols</dt>
{% for transportProtocol in node.transports %}
<dd>{{ transportProtocol }}</dd>
{% endfor %}
{% endif %}
{% if node.type %}
<dt>Type</dt>
<dd>{{ node.type | title }}</dd>
{% endif %}
{% if node.exit_policy.length %}
<dt>Exit Policy</dt>
{% for rule in node.exit_policy %}
<dd>{{ rule }}</dd>
{% endfor %}
</dl>
</section>
<section class="meta">
<h3>Meta</h3>
<dl>
{% if node.contact %}
<dt>Contact</dt>
<dd>{{ node.contact }}</dd>
{% endif %}
{% if node.country_name %}
<dt>Country</dt>
<dd>{{ node.country_name }}</dd>
{% endif %}
</dl>
</section>

Loading…
Cancel
Save