Port index page
This commit is contained in:
parent
3bfae9c0ad
commit
a36b188938
4 changed files with 18 additions and 11 deletions
|
|
@ -1,3 +1,4 @@
|
|||
pub mod commit;
|
||||
pub mod index;
|
||||
pub mod run;
|
||||
pub mod worker;
|
||||
|
|
|
|||
|
|
@ -3,12 +3,14 @@ use axum::{extract::State, response::IntoResponse};
|
|||
use futures::TryStreamExt;
|
||||
use sqlx::SqlitePool;
|
||||
|
||||
use crate::{config::Config, somehow};
|
||||
|
||||
use super::{
|
||||
base::{Base, Tab},
|
||||
link::LinkCommit,
|
||||
paths::PathIndex,
|
||||
use crate::{
|
||||
config::Config,
|
||||
server::web::{
|
||||
base::{Base, Tab},
|
||||
link::LinkCommit,
|
||||
paths::PathIndex,
|
||||
},
|
||||
somehow,
|
||||
};
|
||||
|
||||
struct Ref {
|
||||
|
|
@ -18,7 +20,7 @@ struct Ref {
|
|||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "index.html")]
|
||||
#[template(path = "pages/index.html")]
|
||||
struct IndexTemplate {
|
||||
base: Base,
|
||||
tracked_refs: Vec<Ref>,
|
||||
Loading…
Add table
Add a link
Reference in a new issue