app: Add footer

This commit is contained in:
Valentin Tolmer 2022-03-31 14:17:13 +02:00 committed by nitnelave
parent 203bc9a8a2
commit 2221686dc6

View File

@ -107,6 +107,7 @@ impl Component for App {
/>
</div>
</div>
{self.view_footer()}
</div>
}
}
@ -271,6 +272,30 @@ impl App {
}
}
fn view_footer(&self) -> Html {
html! {
<footer class="text-center text-muted fixed-bottom bg-light">
<div>
<span>{format!("LLDAP version {}", env!("CARGO_PKG_VERSION"))}</span>
</div>
<div>
<a href="https://github.com/nitnelave/lldap" class="me-4 text-reset">
<i class="bi-github"></i>
</a>
<a href="https://discord.gg/h5PEdRMNyP" class="me-4 text-reset">
<i class="bi-discord"></i>
</a>
<a href="https://twitter.com/nitnelave1?ref_src=twsrc%5Etfw" class="me-4 text-reset">
<i class="bi-twitter"></i>
</a>
</div>
<div>
<span>{"License "}<a href="https://github.com/nitnelave/lldap/blob/main/LICENSE" class="link-secondary">{"GNU GPL"}</a></span>
</div>
</footer>
}
}
fn is_admin(&self) -> bool {
match &self.user_info {
None => false,