From 1e4dff1995833538f436b381bc0450a7c0080bad Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 12 May 2025 12:39:10 +0200 Subject: chore: Initial commit Based on the version that was previously in `vhack.eu/nixos-server/pkgs/by-name/ba/back`. --- templates/issue.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ templates/issues.html | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/repos.html | 62 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 templates/issue.html create mode 100644 templates/issues.html create mode 100644 templates/repos.html (limited to 'templates') diff --git a/templates/issue.html b/templates/issue.html new file mode 100644 index 0000000..c7e4efc --- /dev/null +++ b/templates/issue.html @@ -0,0 +1,74 @@ + + + + + + {{ HtmlString::from(issue.title.clone()) }} | Back + + + + +
+ +
+

{{issue.title|safe}}

+
{{issue.id}}
+
+
+
+ Opened by + {{issue.author.name|safe}} + <{{issue.author.email|safe}}> + at {{issue.timestamp}} +
+ {{issue.message|safe}} {% if !issue.comments.is_empty() %} +
    + {% for comment in issue.comments %} +
  1. + {{comment.message|safe}} +

    + {{comment.author.name|safe}} at {{comment.timestamp}} +

    +
  2. + {% endfor %} +
+ {% endif %} +
+ +
+ + diff --git a/templates/issues.html b/templates/issues.html new file mode 100644 index 0000000..564827c --- /dev/null +++ b/templates/issues.html @@ -0,0 +1,77 @@ + + + + + + Back + + + + +
+
+

{{wanted_status}} Issues

+
+
+ +
    + {% for issue in issues -%} +
  1. + +

    + {{issue.title|safe}} +

    + {{issue.id}} + Opened by {{ " " }} + {{issue.author.name|safe}} + {{ " " }} + <{{issue.author.email|safe}}> + {{ "at" }} + {{issue.timestamp}} + + {% if !issue.comments.is_empty() +%} + + - {{issue.comments.len()}} + comment{{issue.comments.len()|pluralize}} + {%+ endif %} +
    +
  2. + {%- endfor %} +
+
+
+ + diff --git a/templates/repos.html b/templates/repos.html new file mode 100644 index 0000000..8aa71c4 --- /dev/null +++ b/templates/repos.html @@ -0,0 +1,62 @@ + + + + + + Back + + + + +
+
+

Repositories

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

    + {{repo.path}} +

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