]> git.mxchange.org Git - fba.git/blob - templates/views/index.html
4974c1bd71b50341858bf30d1fc0ffbda4dea7bd
[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=original_software&amp;amount=50">... original</a></li>
63         <li><a href="scoreboard?mode=command&amp;amount=20">Commands</a></li>
64         <li><a href="scoreboard?mode=error_code&amp;amount=50">Error codes</a></li>
65         <li><a href="scoreboard?mode=detection_mode&amp;amount=10">Detection modes</a></li>
66         <li><a href="scoreboard?mode=avg_peers&amp;amount=50">Average peers</a></li>
67         <li><a href="scoreboard?mode=avg_blocks&amp;amount=50">Average blocks</a></li>
68         <li><a href="scoreboard?mode=obfuscator&amp;amount=10">Obfuscating software</a></li>
69         <li><a href="scoreboard?mode=obfuscation&amp;amount=10">Obfuscation statistics</a></li>
70         <li><a href="scoreboard?mode=block_level&amp;amount=20">Block level statistics</a></li>
71     </ul>
72
73     <h2>Recently added:</h2>
74     <ul class="nav">
75         <li><a href="list?mode=recently&amp;value=1&amp;amount=50">50 instances</a></li>
76     </ul>
77 {% endblock %}
78 {% block footer %}
79     <div class="notice">
80         <h3>Infos:</h3>
81         <table>
82         <thead>
83             <tr>
84                 <th title="This respresents the total count of records in table 'instances'">Total websites:</th>
85                 <th>Supported instances:</th>
86                 <th>Blocks recorded:</th>
87                 <th>Erroneous instances:</th>
88            </tr>
89        </thead>
90
91        <tbody>
92            <tr>
93                <td>{{info.total_websites}}</td>
94                <td>{{info.supported_instances}}</td>
95                <td>{{info.blocks_recorded}}</td>
96                <td>{{info.erroneous_instances}}</td>
97            </tr>
98         </tbody>
99         </table>
100     </div>
101     {{ super() }}
102 {% endblock %}