chore: better UI
This commit is contained in:
parent
2cec90e44c
commit
af7f2b3f55
|
@ -16,7 +16,8 @@ pub fn send_notification(
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let mut body = format!(
|
let mut body = format!(
|
||||||
"This is your friendly neighbourhood pr-tracker.\n\
|
"This is your friendly neighbourhood pr-tracker.\n\
|
||||||
PR Number {pr_number} titled: \"{pr_title}\" has reached:\n\
|
PR <a href=\"https://github.com/NixOS/nixpkgs/pull/{{ pr_number }}\">#{pr_number}</a>\
|
||||||
|
(\"{pr_title}\") has reached:\n\
|
||||||
{:#?}\n",
|
{:#?}\n",
|
||||||
branches
|
branches
|
||||||
);
|
);
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
<h1>Nixpkgs Pull Request Tracker</h1>
|
<h1>Nixpkgs Pull Request Tracker</h1>
|
||||||
|
|
||||||
{%- if subscribed -%}
|
{%- if subscribed -%}
|
||||||
<div class="state-subscribed">You will be notified be by mail when this PR reaches a new ???</div>
|
<div class="state-subscribed">You will be notified be by mail when this PR reaches a new branch</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
<form>
|
<form>
|
||||||
<label for="pr">PR number: </label>
|
<label for="pr">PR number: </label>
|
||||||
|
@ -179,6 +179,8 @@
|
||||||
{{- pr_number -}}
|
{{- pr_number -}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- endmatch -%}">
|
{%- endmatch -%}">
|
||||||
|
{% match pr_number %}
|
||||||
|
{%- when Some with (pr_number) -%}
|
||||||
<br>
|
<br>
|
||||||
<label for="email">Email: </label>
|
<label for="email">Email: </label>
|
||||||
<input id="email" name="email" type="email" value="{%- match email -%}
|
<input id="email" name="email" type="email" value="{%- match email -%}
|
||||||
|
@ -187,7 +189,10 @@
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- endmatch -%}">
|
{%- endmatch -%}">
|
||||||
<br>
|
<br>
|
||||||
|
<button type="submit">Subscribe</button>
|
||||||
|
{%- else -%}
|
||||||
<button type="submit">Track</button>
|
<button type="submit">Track</button>
|
||||||
|
{% endmatch %}
|
||||||
</form>
|
</form>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue