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