From 0074f54434ddcd92a285a613d0c4f724f56dbf82 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 8 Jun 2015 06:48:24 -0500 Subject: WIP: templates --- rpcblockchainexplorer/templates/block.html | 1 + rpcblockchainexplorer/templates/blocks.html | 12 ++++++++++++ rpcblockchainexplorer/templates/body.html | 15 +++++++++++++++ rpcblockchainexplorer/templates/footer.html | 3 +++ rpcblockchainexplorer/templates/header.html | 5 +++++ rpcblockchainexplorer/templates/transaction.html | 0 6 files changed, 36 insertions(+) create mode 100644 rpcblockchainexplorer/templates/block.html create mode 100644 rpcblockchainexplorer/templates/blocks.html create mode 100644 rpcblockchainexplorer/templates/body.html create mode 100644 rpcblockchainexplorer/templates/footer.html create mode 100644 rpcblockchainexplorer/templates/header.html create mode 100644 rpcblockchainexplorer/templates/transaction.html 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 @@ + + + + + + {% for block in blocks %} + + + + + {% endfor %} +
blockheightblockhash
{{ block["height"] }}{{ block["hash"] }}
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 @@ + + + + {% if title %}{{ title }}{% else %}rpcblockchainexplorer{% endif %} + + + {% include "header.html" %} + +
+ {% block content %}{% endblock %} +
+ + {% include "footer.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 @@ + 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 @@ +
+ +
diff --git a/rpcblockchainexplorer/templates/transaction.html b/rpcblockchainexplorer/templates/transaction.html new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3