diff options
author | alpaylan | 2021-04-16 01:03:21 +0300 |
---|---|---|
committer | alpaylan | 2021-04-16 01:03:21 +0300 |
commit | b4212a90caa899785402c06d57216e75de0f1c88 (patch) | |
tree | 8adbe6eb6b451eee20d181f26ab771e0c5a920ee /templates | |
parent | 82864341afc78b23b358cd775c70ffbfa0d0303f (diff) | |
parent | 72f8ae422eeb03ed87c7819af5d5e25758267b03 (diff) | |
download | gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.tar.gz gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.tar.bz2 gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.zip |
Merge remote-tracking branch 'origin/main'
# Conflicts:
# src/schema.rs
Diffstat (limited to 'templates')
-rw-r--r-- | templates/css.html | 8 | ||||
-rw-r--r-- | templates/footer.html | 2 | ||||
-rw-r--r-- | templates/header.html | 11 | ||||
-rw-r--r-- | templates/menu.html | 5 | ||||
-rw-r--r-- | templates/welcome.html | 8 |
5 files changed, 34 insertions, 0 deletions
diff --git a/templates/css.html b/templates/css.html new file mode 100644 index 0000000..c9d54e3 --- /dev/null +++ b/templates/css.html | |||
@@ -0,0 +1,8 @@ | |||
1 | <style> | ||
2 | td, th { | ||
3 | padding: 8px; | ||
4 | } | ||
5 | th { | ||
6 | text-align: left; | ||
7 | } | ||
8 | </style> | ||
diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..2ab5c0d --- /dev/null +++ b/templates/footer.html | |||
@@ -0,0 +1,2 @@ | |||
1 | </body> | ||
2 | </html> | ||
diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..fffbefe --- /dev/null +++ b/templates/header.html | |||
@@ -0,0 +1,11 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <title>Bookstore</title> | ||
4 | {% include "css.html" %} | ||
5 | </head> | ||
6 | <body> | ||
7 | <div> | ||
8 | <h1>Bookstore</h1> | ||
9 | </div> | ||
10 | {% include "menu.html" %} | ||
11 | <hr /> | ||
diff --git a/templates/menu.html b/templates/menu.html new file mode 100644 index 0000000..0f4e85f --- /dev/null +++ b/templates/menu.html | |||
@@ -0,0 +1,5 @@ | |||
1 | <div class="menu"> | ||
2 | <span class="menuitem"> | ||
3 | <a href = "/books/list">Books</a> | ||
4 | </span> | ||
5 | </div> | ||
diff --git a/templates/welcome.html b/templates/welcome.html new file mode 100644 index 0000000..ca60f33 --- /dev/null +++ b/templates/welcome.html | |||
@@ -0,0 +1,8 @@ | |||
1 | {% include "header.html" %} | ||
2 | <div class="entry"> | ||
3 | <h1>{{title}}</h1> | ||
4 | <div class="body"> | ||
5 | {{body}} | ||
6 | </div> | ||
7 | </div> | ||
8 | {% include "footer.html" %} | ||