Add queue tab
This commit is contained in:
parent
06e2f25107
commit
1eeee43f2c
4 changed files with 33 additions and 0 deletions
18
src/web/queue.rs
Normal file
18
src/web/queue.rs
Normal 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),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue