]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 24 Jun 2023 19:00:14 +0000 (21:00 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 24 Jun 2023 19:03:32 +0000 (21:03 +0200)
- some CSS beautifications
- scoreboard navigation is now a list not just links with <br />

templates/base.html
templates/views/index.html
templates/views/scoreboard.html
templates/views/top.html

index 629c135204d6c2b2ed7f4d0aeb9f92efbfc2bdd0..55d30232d231d4b3e3b0fe2fd7405638953f3d77 100644 (file)
@@ -40,7 +40,8 @@
             padding-bottom: 4px;
         }
 
-        table tr:nth-of-type(2n), thead {
+        table.with-rows > tbody > tr:nth-of-type(2n),
+        table.with-rows > thead {
             background-color: #eaeaea;
         }
 
             background-color: #eaeaea;
             border-radius: 5px;
         }
+        ul.nav > li {
+            margin: 2px;
+            display: inline;
+        }
     </style>
 </head>
 
     </div>
 
     <div id="content">
-        {% block content %}{% endblock %}
+        {% block content %}Page has no content!{% endblock %}
     </div>
 
     <div id="footer">
index 94ff6ebbbe702fe323f8c65cc694489b7482f3ba..2e3252735dde1991e022abb8e7736dadc706f0fd 100644 (file)
     </form>
 
     <h2>Scoreboards:</h2>
-    <p>
-        <a href="{{base_url}}/scoreboard?mode=blocker&amp;amount=50">top 50 defederating</a> /
-        <a href="{{base_url}}/scoreboard?mode=blocked&amp;amount=50">defederated instances</a> /
-        <a href="{{base_url}}/scoreboard?mode=reference&amp;amount=50">referencing instances</a> /
-        <a href="{{base_url}}/scoreboard?mode=software&amp;amount=50">used software</a> /
-        <a href="{{base_url}}/scoreboard?mode=command&amp;amount=10">commands</a> /
-        <a href="{{base_url}}/scoreboard?mode=error_code&amp;amount=30">error codes</a> /
-        <a href="{{base_url}}/scoreboard?mode=detection_mode&amp;amount=10">detection modes</a> /
-        <a href="{{base_url}}/scoreboard?mode=avg_peers&amp;amount=30">average peers</a> /
-        <a href="{{base_url}}/scoreboard?mode=obfuscator&amp;amount=30">obfuscating software</a> /
-        <a href="{{base_url}}/scoreboard?mode=obfuscation&amp;amount=10">obfuscation statistics</a> /
-        <a href="{{base_url}}/scoreboard?mode=block_level&amp;amount=20">block level statistics</a>
-    </p>
+    <ul class="nav">
+        <li><a href="{{base_url}}/scoreboard?mode=blocker&amp;amount=50">Defederating instances</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=blocked&amp;amount=50">Defederated instances</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=reference&amp;amount=50">Referencing instances</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=software&amp;amount=50">Used software</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=command&amp;amount=10">Commands</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=error_code&amp;amount=30">Error codes</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=detection_mode&amp;amount=10">Detection modes</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=avg_peers&amp;amount=30">Average peers</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=obfuscator&amp;amount=30">Obfuscating software</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=obfuscation&amp;amount=10">Obfuscation statistics</a></li>
+        <li><a href="{{base_url}}/scoreboard?mode=block_level&amp;amount=20">Block level statistics</a></li>
+    </ul>
 {% endblock %}
 {% block footer %}
-    <h2>Infos:</h2>
-    <p>
-        known instances: {{info.known_instances}}<br/>
-        supported instances: {{info.supported_instances}}<br/>
-        blocks recorded: {{info.blocks_recorded}}<br/>
-        erroneous instances: {{info.erroneous_instances}}<br/>
-    </p>
+    <div class="notice">
+        <h3>Infos:</h3>
+        <table>
+        <thead>
+            <tr>
+                <th>Known instances:</th>
+                <th>Supported instances:</th>
+                <th>Blocks recorded:</th>
+                <th>Erroneous instances:</th>
+           </tr>
+       </thead>
+
+       <tbody>
+           <tr>
+               <td>{{info.known_instances}}</td>
+               <td>{{info.supported_instances}}</td>
+               <td>{{info.blocks_recorded}}</td>
+               <td>{{info.erroneous_instances}}</td>
+           </tr>
+        </tbody>
+        </table>
+        </div>
+    </div>
     {{ super() }}
 {% endblock %}
index 15d698d7458a3259c9b8247bf37b7d8b337fd1cb..662ab4ee9c3a08030cc20d2f82e352f948c44077 100644 (file)
@@ -30,7 +30,7 @@
 
 {% block content %}
     <div class="scoreboard">
-        <table>
+        <table class="with-rows">
             <thead>
                 <th>№</th>
                 <th>{% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}Obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %}</th>
index 49a64a9f892fe53d8a6aee1a1706c96440ba5b04..204db6e25e3eae5d68b14bf8449263d8b4d10ad9 100644 (file)
@@ -33,9 +33,9 @@
     {% endif %}
 
     {% for block_level in blocklist %}
-        <div class="block_level" id="{{block_level}}">
+        <div class="block_level">
             <h2>{{block_level}} ({{blocklist[block_level]|length}})</h2>
-            <table>
+            <table class="with-rows">
                 <thead>
                     <th>Blocker</th>
                     <th>{% if block_level == 'accept' %}Accepted{% else %}Blocked{% endif %}</th>