Add queue tab

This commit is contained in:
Joscha 2023-08-06 19:23:20 +02:00
parent 06e2f25107
commit 1eeee43f2c
4 changed files with 33 additions and 0 deletions

18
src/web/queue.rs Normal file
View file

@ -0,0 +1,18 @@
use askama::Template;
use axum::{extract::State, response::IntoResponse};
use crate::{config::Config, somehow};
use super::{Base, Tab};
#[derive(Template)]
#[template(path = "queue.html")]
struct CommitTemplate {
base: Base,
}
pub async fn get(State(config): State<&'static Config>) -> somehow::Result<impl IntoResponse> {
Ok(CommitTemplate {
base: Base::new(config, Tab::Queue),
})
}