Use extension trait for resolving paths

This commit is contained in:
Joscha 2024-05-12 14:52:23 +02:00
parent 5409e176b1
commit cf96b72dfb
10 changed files with 88 additions and 86 deletions

View file

@ -15,6 +15,7 @@ use crate::{
base::{Base, Tab},
link::{LinkCommit, LinkRunDate},
paths::{PathAdminQueueAdd, PathCommitByHash},
server_config_ext::ServerConfigExt,
},
},
somehow,
@ -145,7 +146,7 @@ pub async fn get_commit_by_hash(
}
}
}
form method="post" action=(base.link(PathAdminQueueAdd {})) {
form method="post" action=(config.path(PathAdminQueueAdd {})) {
input type="hidden" name="hash" value=(commit.hash);
button { "Add to queue" } " with a "
label for="priority" { "priority" } " of "