aboutsummaryrefslogtreecommitdiff
path: root/templates/index.rs.html
blob: d0196dfcd4fc771556df2173500c33300d4ccb90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@use super::{header_html, footer_html};
@use crate::models::DbUser;

@(user: Option<DbUser>)
@:header_html()
            <h1>NCCd (Network Communications Control Daemon)</h1>

            @if user.is_some() {
                <h3>Welcome @user.unwrap().pref_name</h3>
            } else {

            <h3>Please <a href="/dash/auth/login">Log in</a></h3>
            }
@:footer_html()