cleanup
This commit is contained in:
parent
c4d44c68a0
commit
c67fcc6fa3
7 changed files with 37 additions and 15 deletions
|
@ -5,6 +5,7 @@ use askama::Template;
|
|||
#[derive(Template, Default)]
|
||||
#[template(path = "index.html")]
|
||||
pub struct IndexTemplate {
|
||||
nickname: String,
|
||||
my: Vec<db::Device>,
|
||||
unassinged: Vec<db::AliveDevice>,
|
||||
messages: Vec<Message>,
|
||||
|
@ -12,11 +13,13 @@ pub struct IndexTemplate {
|
|||
|
||||
impl IndexTemplate {
|
||||
pub fn new(
|
||||
nickname: String,
|
||||
my: Vec<db::Device>,
|
||||
unassinged: Vec<db::AliveDevice>,
|
||||
messages: Vec<Message>,
|
||||
) -> Self {
|
||||
Self {
|
||||
nickname,
|
||||
my,
|
||||
unassinged,
|
||||
messages,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue