aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoryigit sever2021-04-16 13:40:17 +0000
committeryigit sever2021-04-16 13:40:17 +0000
commite81b6af56436be291adf31f770c6ef7e8ddfdbd0 (patch)
treeb1d02cfccf1f3004f5a9e6bcc68dfef180c08150 /templates
parentc28b07a494ea39f91283601251061366a9f5e93e (diff)
parent204dbc1f887f42e4a5ea734895ef36c5c434890f (diff)
downloadgradecoin-e81b6af56436be291adf31f770c6ef7e8ddfdbd0.tar.gz
gradecoin-e81b6af56436be291adf31f770c6ef7e8ddfdbd0.tar.bz2
gradecoin-e81b6af56436be291adf31f770c6ef7e8ddfdbd0.zip
Merge pull request 'Add existing user get support' (#1) from usershow into main
Reviewed-on: https://git.yigitsever.com/yigit/gradecoin/pulls/1
Diffstat (limited to 'templates')
-rw-r--r--templates/css.html27
-rw-r--r--templates/header.html5
-rw-r--r--templates/list.html15
3 files changed, 38 insertions, 9 deletions
diff --git a/templates/css.html b/templates/css.html
index c9d54e3..a918a4b 100644
--- a/templates/css.html
+++ b/templates/css.html
@@ -1,8 +1,23 @@
1<style> 1<style>
2 td, th { 2table, th, td {
3 padding: 8px; 3 border: 1px solid black;
4 } 4 border-collapse: collapse;
5 th { 5}
6 text-align: left; 6th, td {
7 } 7 padding: 15px;
8}
9#t01 {
10 width: 100%;
11 background-color: #fbf1c7;
12}
13#t01 tr:nth-child(even) {
14 background-color: #a89984;
15}
16#t01 tr:nth-child(odd) {
17 background-color: #f9f5d7;
18}
19#t01 th {
20 color: #fbf1c7;
21 background-color: #282828;
22}
8</style> 23</style>
diff --git a/templates/header.html b/templates/header.html
index fffbefe..a142fad 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -1,11 +1,10 @@
1<html> 1<html>
2 <head> 2 <head>
3 <title>Bookstore</title> 3 <title>Gradecoin</title>
4 {% include "css.html" %} 4 {% include "css.html" %}
5 </head> 5 </head>
6 <body> 6 <body>
7 <div> 7 <div>
8 <h1>Bookstore</h1> 8 <h1>Registered Users</h1>
9 </div> 9 </div>
10 {% include "menu.html" %}
11 <hr /> 10 <hr />
diff --git a/templates/list.html b/templates/list.html
new file mode 100644
index 0000000..e63c6be
--- /dev/null
+++ b/templates/list.html
@@ -0,0 +1,15 @@
1{% include "header.html" %}
2
3<table id="t01">
4 <tr>
5 <th>Fingerprint</td>
6 <th>Balance</td>
7 </tr>
8 {% for user in users %}
9 <tr>
10 <td>{{ user.fingerprint }}</td>
11 <td>{{ user.balance }}</td>
12 <?tr>
13 {% endfor %}
14</table>
15{% include "footer.html" %}