]> git.mxchange.org Git - fba.git/blob - templates/views/index.html
Continued:
[fba.git] / templates / views / index.html
1 {% extends "base.html" %}
2
3 {% block title %}Index{% endblock %}
4
5 {% block header %}<h1>Welcome to FBA</h1>{% endblock %}
6
7 {% block content %}
8     <table class="index-table">
9     <thead>
10         <tr>
11             <th colspan="2">
12                 <h3>Choose an option</h3>
13             </th>
14         </tr>
15     </thead>
16
17     <tbody>
18     <tr>
19         <td>
20             <h3>Enter a domain:</h3>
21             <form action="top">
22                 <input type="hidden" name="mode" value="domain" />
23                 <input type="text" name="value" placeholder="example.com" required="required" />
24                 <input type="submit" value="Submit" />
25             </form>
26         </td>
27         <td>
28             <h3>Enter a reason:</h3>
29             <form action="top">
30                 <input type="hidden" name="mode" value="reason" />
31                 <input type="text" name="value" placeholder="free speech" required="required" />
32                 <input type="submit" value="Submit" />
33             </form>
34         </td>
35     </tr>
36     <tr>
37         <td>
38             <h3>Reverse search:</h3>
39             <form action="top">
40                 <input type="hidden" name="mode" value="reverse" />
41                 <input type="text" name="value" placeholder="example.com" required="required" />
42                 <input type="submit" value="Submit" />
43             </form>
44         </td>
45         <td>
46             <h3>Info of a domain:</h3>
47             <form action="infos">
48                 <input type="text" name="domain" placeholder="example.com" required="required" />
49                 <input type="submit" value="Submit" />
50             </form>
51         </td>
52     </tr>
53     </tbody>
54     </table>
55
56     <h2>Scoreboards:</h2>
57     <ul class="nav">
58         <li><a href="scoreboard?mode=blocker&amp;amount=50">Defederating instances</a></li>
59         <li><a href="scoreboard?mode=blocked&amp;amount=50">Defederated instances</a></li>
60         <li><a href="scoreboard?mode=reference&amp;amount=50">Referencing instances</a></li>
61         <li><a href="scoreboard?mode=software&amp;amount=50">Used software</a></li>
62         <li><a href="scoreboard?mode=command&amp;amount=20">Commands</a></li>
63         <li><a href="scoreboard?mode=error_code&amp;amount=50">Error codes</a></li>
64         <li><a href="scoreboard?mode=detection_mode&amp;amount=10">Detection modes</a></li>
65         <li><a href="scoreboard?mode=avg_peers&amp;amount=50">Average peers</a></li>
66         <li><a href="scoreboard?mode=avg_blocks&amp;amount=50">Average blocks</a></li>
67         <li><a href="scoreboard?mode=obfuscator&amp;amount=10">Obfuscating software</a></li>
68         <li><a href="scoreboard?mode=obfuscation&amp;amount=10">Obfuscation statistics</a></li>
69         <li><a href="scoreboard?mode=block_level&amp;amount=20">Block level statistics</a></li>
70     </ul>
71 {% endblock %}
72 {% block footer %}
73     <div class="notice">
74         <h3>Infos:</h3>
75         <table>
76         <thead>
77             <tr>
78                 <th>Known instances:</th>
79                 <th>Supported instances:</th>
80                 <th>Blocks recorded:</th>
81                 <th>Erroneous instances:</th>
82            </tr>
83        </thead>
84
85        <tbody>
86            <tr>
87                <td>{{info.known_instances}}</td>
88                <td>{{info.supported_instances}}</td>
89                <td>{{info.blocks_recorded}}</td>
90                <td>{{info.erroneous_instances}}</td>
91            </tr>
92         </tbody>
93         </table>
94     </div>
95     {{ super() }}
96 {% endblock %}