This commit is contained in:
Stefan Schwarz 2020-08-15 16:34:23 +02:00
parent 09a3f096c7
commit 288f193754
7 changed files with 53 additions and 17 deletions

View file

@ -4,12 +4,12 @@ use askama::Template;
#[derive(Template, Default)]
#[template(path = "index.html")]
pub struct IndexTemplate {
my: Vec<db::Entry>,
my: Vec<db::Device>,
unassinged: Vec<db::AliveDevice>,
}
impl IndexTemplate {
pub fn new(my: Vec<db::Entry>, unassinged: Vec<db::AliveDevice>) -> Self {
pub fn new(my: Vec<db::Device>, unassinged: Vec<db::AliveDevice>) -> Self {
Self { my, unassinged }
}
}