diff options
-rw-r--r-- | rpcblockchainexplorer/templates/block.html | 1 | ||||
-rw-r--r-- | rpcblockchainexplorer/templates/blocks.html | 12 | ||||
-rw-r--r-- | rpcblockchainexplorer/templates/body.html | 15 | ||||
-rw-r--r-- | rpcblockchainexplorer/templates/footer.html | 3 | ||||
-rw-r--r-- | rpcblockchainexplorer/templates/header.html | 5 | ||||
-rw-r--r-- | rpcblockchainexplorer/templates/transaction.html | 0 |
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 |