From a9ff6e1c86ad51b3fa568ea7caa992df5db8c316 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 8 Mar 2025 21:50:22 +0100 Subject: pkgs/back: Support listing all repos via the `/` path This change required porting all webhandling from rocket to hyper, because we needed fine grained control over the path the user requested. This should also improve the memory and resources footprint because hyper is more lower level. I also changed all of the templates from `format!()` calls to a real templating language because I needed to touch most code paths anyway. --- pkgs/by-name/ba/back/templates/repos.html | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/ba/back/templates/repos.html (limited to 'pkgs/by-name/ba/back/templates/repos.html') diff --git a/pkgs/by-name/ba/back/templates/repos.html b/pkgs/by-name/ba/back/templates/repos.html new file mode 100644 index 0000000..dbccba0 --- /dev/null +++ b/pkgs/by-name/ba/back/templates/repos.html @@ -0,0 +1,47 @@ + + + + Back + + + + +
+
+

Repositories

+
+
+ +
    + {% for repo in repos -%} +
  1. + +

    + {{repo.path}} +

    + + {{repo.description}} + {{ "-" }} + {{repo.owner}} + +
    +
  2. + {%- endfor %} +
+
+
+ + -- cgit 1.4.1