aboutsummaryrefslogtreecommitdiff
path: root/templates/links.html
diff options
context:
space:
mode:
authorMetroWind <chris.corsair@gmail.com>2025-09-07 09:42:33 -0700
committerMetroWind <chris.corsair@gmail.com>2025-09-07 09:42:33 -0700
commitea0d3220db995018335c48eb06b9794235ff436b (patch)
tree892564cdd4946c6ee9c1051bc31ff5c7bba6ddf1 /templates/links.html
Initial commit, mostly just copied from shrt.
Diffstat (limited to 'templates/links.html')
-rw-r--r--templates/links.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/links.html b/templates/links.html
new file mode 100644
index 0000000..f3b3e3f
--- /dev/null
+++ b/templates/links.html
@@ -0,0 +1,39 @@
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 {% include "head.html" %}
5 <meta property="og:title" content="shrt">
6 <meta property="og:type" content="website">
7 <meta property="og:url" content="{{ url_for("links") }}">
8 <title>shrt</title>
9 </head>
10 <body>
11 <div id="Body" class="Window">
12 {% include "nav.html" %}
13 <div class="Toolbar">
14 <a class="FloatButton" href="{{ url_for("new-link") }}">➕</a>
15 </div>
16 <div id="Links">
17 <table class="TableView">
18 <thead><tr>
19 <th>Shortcut</th>
20 <th>URL</th>
21 <th>Regexp?</th>
22 <th>Actions</th>
23 </tr></thead>
24 <tbody>
25 {% for link in links %}
26 <tr>
27 <td>{{ link.shortcut }}</td>
28 <td>{{ link.original_url }}</td>
29 <td>{{ link.type_is_regexp_str }}</td>
30 <td><a href="{{ url_for("delete-link", link.id_str) }}">❌</a></td>
31 </tr>
32 {% endfor %}
33 </tbody>
34 </table>
35 </div>
36 {% include "footer.html" %}
37 </div>
38 </body>
39</html>