Skip to content

Commit

Permalink
jinja2 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
koirikivi committed Apr 27, 2024
1 parent f8a2994 commit 5a0ed93
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 12 additions & 0 deletions bridge_node/bridge/api/monitor/templates/monitor/base.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<title>{% block title %}NBTE Bridge Monitor{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<div class="container">
{% block content %}{% endblock %}
</div>
</body>
</html>
12 changes: 3 additions & 9 deletions bridge_node/bridge/api/monitor/templates/monitor/deposits.jinja2
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<!doctype html>
<html>
<head>
<title>Deposits Monitor</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
{% extends "templates/monitor/base.jinja2" %}
{% block content %}
<h2>Rune Deposits</h2>
<table class="table">
<tr>
Expand Down Expand Up @@ -74,5 +69,4 @@
</tr>
{% endfor %}
</table>
</body>
</html>
{% endblock %}
12 changes: 3 additions & 9 deletions bridge_node/bridge/api/monitor/templates/monitor/runes.jinja2
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<!doctype html>
<html>
<head>
<title>Runes Monitor</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
{% extends "templates/monitor/base.jinja2" %}
{% block content %}
<h2>Runes</h2>
<table class="table">
<tr>
Expand All @@ -18,5 +13,4 @@
</tr>
{% endfor %}
</table>
</body>
</html>
{% endblock %}

0 comments on commit 5a0ed93

Please sign in to comment.