From 6f9ccf054b8af59243e50b24d2c8b36e22ab3ac4 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 14 Feb 2021 11:57:45 +0000 Subject: Initial commit --- templates/page.html | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/tree.html | 23 ++++++ 2 files changed, 226 insertions(+) create mode 100644 templates/page.html create mode 100644 templates/tree.html (limited to 'templates') diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..715814a --- /dev/null +++ b/templates/page.html @@ -0,0 +1,203 @@ + + + + + + + {% match pr_number %} + {% when Some with (pr_number) %} + Nixpkgs PR #{{ pr_number }} progress + {% else %} + Nixpkgs PR progress tracker + {% endmatch %} + + + + + + + +
+

Nixpkgs Pull Request Tracker

+ +
+ + + +
+
+ + {% match error %} + {% when Some with (error) %} +
+

{{ error }}

+
+ {% else %} + {% endmatch %} + + {% match pr_number %} + {% when Some with (pr_number) %} +
+
    +
  1. + {% if closed %} + + {% else %} + + {% endif %} + PR #{{ pr_number }} + {% if closed %} + closed + {% endif %} +
  2. + + {% match tree %} + {% when Some with (tree) %} + {{ tree|safe }} + {% else %} + {% endmatch %} +
+
+ {% else %} + {% endmatch %} + + + + diff --git a/templates/tree.html b/templates/tree.html new file mode 100644 index 0000000..5a851a1 --- /dev/null +++ b/templates/tree.html @@ -0,0 +1,23 @@ + + + +
  • + {% match accepted %} + {% when Some with (true) %} + + {% when Some with (false) %} + + {% when None %} + + {% endmatch %} + + {{ branch_name }} + + {% if !children.is_empty() %} + + {% endif %} +
  • -- cgit 1.4.1