From af7f2b3f552d4072d30313d5631c1085f0ba864e Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 17 Jul 2024 23:51:12 +0200 Subject: [PATCH] chore: better UI --- src/mail.rs | 3 ++- templates/page.html | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mail.rs b/src/mail.rs index 04a15b7..039698c 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -16,7 +16,8 @@ pub fn send_notification( ) -> Result<()> { let mut body = format!( "This is your friendly neighbourhood pr-tracker.\n\ - PR Number {pr_number} titled: \"{pr_title}\" has reached:\n\ + PR #{pr_number}\ + (\"{pr_title}\") has reached:\n\ {:#?}\n", branches ); diff --git a/templates/page.html b/templates/page.html index 6a09f46..feab091 100644 --- a/templates/page.html +++ b/templates/page.html @@ -170,7 +170,7 @@

Nixpkgs Pull Request Tracker

{%- if subscribed -%} -
You will be notified be by mail when this PR reaches a new ???
+
You will be notified be by mail when this PR reaches a new branch
{%- endif -%}
@@ -179,6 +179,8 @@ {{- pr_number -}} {%- else -%} {%- endmatch -%}"> + {% match pr_number %} + {%- when Some with (pr_number) -%}

+ + {%- else -%} + {% endmatch %}