diff options
Diffstat (limited to 'browser/templates')
| -rw-r--r-- | browser/templates/base.html.j2 | 19 | ||||
| -rw-r--r-- | browser/templates/frag_aside.html.j2 | 27 | ||||
| -rw-r--r-- | browser/templates/frag_aside_link.html.j2 | 9 | ||||
| -rw-r--r-- | browser/templates/frag_error.html.j2 | 16 | ||||
| -rw-r--r-- | browser/templates/frag_form_delete.html.j2 | 7 | ||||
| -rw-r--r-- | browser/templates/frag_form_find.html.j2 | 7 | ||||
| -rw-r--r-- | browser/templates/frag_form_range.html.j2 | 21 | ||||
| -rw-r--r-- | browser/templates/frag_form_upsert.html.j2 | 5 | ||||
| -rw-r--r-- | browser/templates/frag_results.html.j2 | 18 | ||||
| -rw-r--r-- | browser/templates/page_error.html.j2 | 5 | ||||
| -rw-r--r-- | browser/templates/page_main.html.j2 | 11 |
11 files changed, 0 insertions, 145 deletions
diff --git a/browser/templates/base.html.j2 b/browser/templates/base.html.j2 deleted file mode 100644 index 47b3f6c..0000000 --- a/browser/templates/base.html.j2 +++ /dev/null @@ -1,19 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="preload" href="/static/InclusiveSans-Regular.ttf" as="font" type="font/woff2" crossorigin="anonymous"> - <link rel="stylesheet" href="/static/styles.css"></link> - {% block head_meta %} - <title>Database browser</title> - <meta name="description" content="Database browser for log_db"> - {% endblock %} -</head> -<body> - <h1><a href="/">Database browser</a></h1> - {% block content %}{% endblock %} - - <script src="/static/htmp.js"></script> -</body> -</html> diff --git a/browser/templates/frag_aside.html.j2 b/browser/templates/frag_aside.html.j2 deleted file mode 100644 index 6c5658f..0000000 --- a/browser/templates/frag_aside.html.j2 +++ /dev/null @@ -1,27 +0,0 @@ -{# -Params - selected_form Form fragment to include -#} - -<aside id="aside"> - <h3>Read operations</h3> - <ul> - {% with href="/find", text="Find" %} - <li>{% include "frag_aside_link.html.j2" %}</li> - {% endwith %} - {% with href="/range", text="Range" %} - <li>{% include "frag_aside_link.html.j2" %}</li> - {% endwith %} - </ul> - <h3>Write operations</h3> - <ul> - {% with href="/upsert", text="Upsert" %} - <li>{% include "frag_aside_link.html.j2" %}</li> - {% endwith %} - {% with href="/delete", text="Delete" %} - <li>{% include "frag_aside_link.html.j2" %}</li> - {% endwith %} - </ul> - - {% include selected_form %} -</aside> diff --git a/browser/templates/frag_aside_link.html.j2 b/browser/templates/frag_aside_link.html.j2 deleted file mode 100644 index 9cd6041..0000000 --- a/browser/templates/frag_aside_link.html.j2 +++ /dev/null @@ -1,9 +0,0 @@ -{# -Params - text Text to render in the link - href URL to link to -#} - -<form method="GET" action="{{ href }}" htmp replace=form_query> - <button class="link" type="submit">{{ text }}</button> -</form> diff --git a/browser/templates/frag_error.html.j2 b/browser/templates/frag_error.html.j2 deleted file mode 100644 index c5034cd..0000000 --- a/browser/templates/frag_error.html.j2 +++ /dev/null @@ -1,16 +0,0 @@ -{# -Params - error Error message to display - container (optional) id for a div to wrap the error message in -#} - -{% if container %} -<div id="{{ container }}"> -{% endif %} - -<h2>Error</h2> -{{ error }} - -{% if container %} -</div> -{% endif %} diff --git a/browser/templates/frag_form_delete.html.j2 b/browser/templates/frag_form_delete.html.j2 deleted file mode 100644 index 22306c1..0000000 --- a/browser/templates/frag_form_delete.html.j2 +++ /dev/null @@ -1,7 +0,0 @@ -<form id="form_query" action="/delete" method="post" htmp replace=results> - <label for="field">Field</label> - <input type="text" name="field" id="field" required> - <label for="value">Value</label> - <input type="text" name="value" id="value" required> - <button type="submit">Run query</button> -</form> diff --git a/browser/templates/frag_form_find.html.j2 b/browser/templates/frag_form_find.html.j2 deleted file mode 100644 index cadd44b..0000000 --- a/browser/templates/frag_form_find.html.j2 +++ /dev/null @@ -1,7 +0,0 @@ -<form id="form_query" action="/find" method="post" htmp replace=results> - <label for="field">Field</label> - <input type="text" name="field" id="field" required> - <label for="values">Values (one per line)</label> - <textarea name="values" id="values" required></textarea> - <button type="submit">Run query</button> -</form> diff --git a/browser/templates/frag_form_range.html.j2 b/browser/templates/frag_form_range.html.j2 deleted file mode 100644 index 84b8024..0000000 --- a/browser/templates/frag_form_range.html.j2 +++ /dev/null @@ -1,21 +0,0 @@ -<form id="form_query" action="/range" method="post" htmp replace=results> - <label for="field">Field</label> - <input type="text" name="field" id="field" required> - <label for="from_type">Lower bound type</label> - <select id="from_type" name="from_type" required> - <option value="unbounded">Unbounded</option> - <option value="included">Inclusive</option> - <option value="excluded">Exclusive</option> - </select> - <label for="values">Lower bound value</label> - <input type="text" name="from_value" id="from_value"> - <label for="to_type">Upper bound type</label> - <select id="to_type" name="to_type" required> - <option value="unbounded">Unbounded</option> - <option value="included">Inclusive</option> - <option value="excluded">Exclusive</option> - </select> - <label for="values">Upper bound value</label> - <input type="text" name="to_value" id="to_value"> - <button type="submit">Run query</button> -</form> diff --git a/browser/templates/frag_form_upsert.html.j2 b/browser/templates/frag_form_upsert.html.j2 deleted file mode 100644 index 68820f5..0000000 --- a/browser/templates/frag_form_upsert.html.j2 +++ /dev/null @@ -1,5 +0,0 @@ -<form id="form_query" action="/upsert" method="post" htmp replace=results> - <label for="values">Values (one per line)</label> - <textarea name="values" id="values" required></textarea> - <button type="submit">Run query</button> -</form> diff --git a/browser/templates/frag_results.html.j2 b/browser/templates/frag_results.html.j2 deleted file mode 100644 index bfb54e9..0000000 --- a/browser/templates/frag_results.html.j2 +++ /dev/null @@ -1,18 +0,0 @@ -<table id="results"> -<thead> - <tr> - {% for field_name in field_names %} - <th>{{ field_name }}</th> - {% endfor %} - </tr> -</thead> -<tbody> - {% for row in rows %} - <tr> - {% for field in row %} - <td>{{ field }}</td> - {% endfor %} - </tr> - {% endfor %} -</tbody> -</table> diff --git a/browser/templates/page_error.html.j2 b/browser/templates/page_error.html.j2 deleted file mode 100644 index 3233283..0000000 --- a/browser/templates/page_error.html.j2 +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "base.html.j2" %} - -{% block content %} -{% include "frag_error.html.j2" %} -{% endblock %} diff --git a/browser/templates/page_main.html.j2 b/browser/templates/page_main.html.j2 deleted file mode 100644 index 907275f..0000000 --- a/browser/templates/page_main.html.j2 +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "base.html.j2" %} - -{% block content %} -<div id="container"> - {% include "frag_aside.html.j2" %} - - <main id="main"> - {% include "frag_results.html.j2" %} - </main> -</div> -{% endblock %} |
