margin: auto;
margin-top: 10px;
}
- .scoreboard {
- background-color: #1c1c3c;
- width: 40em;
- padding: 5px;
- margin: auto;
- margin-top: 10px;
- }
table {
width: 100%;
background-color: #2d2d4d;
</style>
</head>
<body>
- {% if scoreboard %}
- {% if blockers %}
- <h1>Top {{blockers}} defederating instances</h1>
- {% elif blocked %}
- <h1>Top {{blocked}} defederated instances</h1>
- {% elif reference %}
- <h1>Top {{reference}} referencing instances</h1>
- {% elif software %}
- <h1>Top {{software}} used software</h1>
- {% endif %}
- <div class="scoreboard">
- <table>
- <th>№</th>
- <th>{% if software %}Software{% else %}Instance{% endif %}</th>
- <th>{% if reference %}References{% elif software %}Total{% else %}Blocks{% endif %}</th>
- {% for entry in scores %}
- <tr>
- <td>{{loop.index}}</td>
- <td>
- {% if software %}
- {{entry['domain']}}
- {% else %}
- <a href="{{base_url}}/?{% if blockers %}reverse{% elif blocked or reference %}domain{% endif %}={{entry['domain']}}" rel="nofollow noopener noreferrer">{{entry['domain']}}</a>
- <a class="listlink" href="https://{{entry['domain']}}" rel="external" target="_blank">↗</a>
- {% endif %}
- </td>
- <td>{{entry['highscore']}}</td>
- </tr>
- {% endfor %}
- </table>
- </div>
- {% elif reason or domain or reverse %}
+ {% if reason or domain or reverse %}
{% if reason %}
<h1>Instances that use "{{reason}}" in their reason</h1>
{% elif reverse %}