aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorYigit Sever2021-04-23 01:41:18 +0300
committerYigit Sever2021-04-23 01:41:18 +0300
commit63d08a9f120e842dcc5a34a1db6b39957c643b30 (patch)
tree74fc517fb6f6a466806aae02248c5dc7020ee9f3 /templates
parente9bf8a1a85d9366e59ec7989772d4e16490f1273 (diff)
downloadgradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.tar.gz
gradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.tar.bz2
gradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.zip
[WIP] Done, untested
Diffstat (limited to 'templates')
-rw-r--r--templates/css.html21
-rw-r--r--templates/header.html11
-rw-r--r--templates/list.html4
3 files changed, 22 insertions, 14 deletions
diff --git a/templates/css.html b/templates/css.html
index a918a4b..4a2ac7b 100644
--- a/templates/css.html
+++ b/templates/css.html
@@ -1,23 +1,30 @@
1<style> 1<style>
2
3body {
4 font-family: monospace, Times, serif;
5 margin: 2em auto;
6 max-width: 800px;
7}
8
2table, th, td { 9table, th, td {
3 border: 1px solid black; 10 border: 1px solid black;
4 border-collapse: collapse; 11 border-collapse: collapse;
5} 12}
6th, td { 13th, td {
7 padding: 15px; 14 padding: 10px;
8} 15}
9#t01 { 16#t01 {
10 width: 100%; 17 width: 100%;
11 background-color: #fbf1c7; 18 background-color: #fbf1c7;
12} 19}
13#t01 tr:nth-child(even) { 20#t01 tr:nth-child(even) {
14 background-color: #a89984; 21 background-color: #a89984;
15} 22}
16#t01 tr:nth-child(odd) { 23#t01 tr:nth-child(odd) {
17 background-color: #f9f5d7; 24 background-color: #f9f5d7;
18} 25}
19#t01 th { 26#t01 th {
20 color: #fbf1c7; 27 color: #fbf1c7;
21 background-color: #282828; 28 background-color: #282828;
22} 29}
23</style> 30</style>
diff --git a/templates/header.html b/templates/header.html
index a142fad..1c9136e 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -1,10 +1,11 @@
1<html> 1<html>
2 <head> 2 <head>
3 <title>Gradecoin</title> 3 <meta name="viewport" content="width=device-width, initial-scale=1.0">
4 <title>Gradecoin | Users</title>
4 {% include "css.html" %} 5 {% include "css.html" %}
5 </head> 6 </head>
6 <body> 7 <body>
7 <div> 8 <div>
8 <h1>Registered Users</h1> 9 <h1>Registered Users</h1>
9 </div> 10 </div>
10 <hr /> 11 <hr />
diff --git a/templates/list.html b/templates/list.html
index 083e0e8..0f19107 100644
--- a/templates/list.html
+++ b/templates/list.html
@@ -7,9 +7,9 @@
7 </tr> 7 </tr>
8 {% for user in users %} 8 {% for user in users %}
9 <tr> 9 <tr>
10 <td>{{ user.fingerprint }}</td> 10 <td>{{ user.fingerprint }} {% if user.is_bot %} <span title="I'm a bot!">👋🤖</span> {% endif %}</td>
11 <td>{{ user.balance }}</td> 11 <td>{{ user.balance }}</td>
12 </tr> 12 </tr>
13 {% endfor %} 13 {% endfor %}
14</table> 14</table>
15{% include "footer.html" %} 15{% include "footer.html" %}