work
This commit is contained in:
parent
09a3f096c7
commit
288f193754
7 changed files with 53 additions and 17 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue