summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2015-06-08 06:48:24 -0500
committerBryan Bishop <kanzure@gmail.com>2015-06-08 06:48:24 -0500
commit0074f54434ddcd92a285a613d0c4f724f56dbf82 (patch)
tree32b7e2b2aab1a2f2278e242e643c49fd12e48460
parentcd06cee03a6bf44237dcde5f2ce98146dbb97296 (diff)
downloadrpcblockchainexplorer-0074f54434ddcd92a285a613d0c4f724f56dbf82.tar.gz
rpcblockchainexplorer-0074f54434ddcd92a285a613d0c4f724f56dbf82.zip
WIP: templates
-rw-r--r--rpcblockchainexplorer/templates/block.html1
-rw-r--r--rpcblockchainexplorer/templates/blocks.html12
-rw-r--r--rpcblockchainexplorer/templates/body.html15
-rw-r--r--rpcblockchainexplorer/templates/footer.html3
-rw-r--r--rpcblockchainexplorer/templates/header.html5
-rw-r--r--rpcblockchainexplorer/templates/transaction.html0
6 files changed, 36 insertions, 0 deletions
diff --git a/rpcblockchainexplorer/templates/block.html b/rpcblockchainexplorer/templates/block.html
new file mode 100644
index 0000000..c760632
--- /dev/null
+++ b/rpcblockchainexplorer/templates/block.html
@@ -0,0 +1 @@
+blockheight
diff --git a/rpcblockchainexplorer/templates/blocks.html b/rpcblockchainexplorer/templates/blocks.html
new file mode 100644
index 0000000..c89677a
--- /dev/null
+++ b/rpcblockchainexplorer/templates/blocks.html
@@ -0,0 +1,12 @@
+<table>
+ <tr>
+ <td>blockheight</td>
+ <td>blockhash</td>
+ </tr>
+ {% for block in blocks %}
+ <tr>
+ <td>{{ block["height"] }}</td>
+ <td>{{ block["hash"] }}</td>
+ </tr>
+ {% endfor %}
+</table>
diff --git a/rpcblockchainexplorer/templates/body.html b/rpcblockchainexplorer/templates/body.html
new file mode 100644
index 0000000..e012001
--- /dev/null
+++ b/rpcblockchainexplorer/templates/body.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{% if title %}{{ title }}{% else %}rpcblockchainexplorer{% endif %}</title>
+ </head>
+ <body>
+ {% include "header.html" %}
+
+ <div class="content">
+ {% block content %}{% endblock %}
+ </div>
+
+ {% include "footer.html" %}
+ </body>
+</html>
diff --git a/rpcblockchainexplorer/templates/footer.html b/rpcblockchainexplorer/templates/footer.html
new file mode 100644
index 0000000..6615a83
--- /dev/null
+++ b/rpcblockchainexplorer/templates/footer.html
@@ -0,0 +1,3 @@
+<div class="footer">
+rpcblockchainexplorer
+</div>
diff --git a/rpcblockchainexplorer/templates/header.html b/rpcblockchainexplorer/templates/header.html
new file mode 100644
index 0000000..d95839c
--- /dev/null
+++ b/rpcblockchainexplorer/templates/header.html
@@ -0,0 +1,5 @@
+<div class="header">
+ <ul>
+ <li><a href="/">main</a></li>
+ </ul>
+</div>
diff --git a/rpcblockchainexplorer/templates/transaction.html b/rpcblockchainexplorer/templates/transaction.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/rpcblockchainexplorer/templates/transaction.html