mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-07 16:43:21 +00:00
Add more credits
This commit is contained in:
parent
fbb0578db6
commit
29f2ea9817
3 changed files with 13 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
use rocket::{get, Route};
|
use rocket::{get, Route, State};
|
||||||
use rocket::serde::json::Json;
|
use rocket::serde::json::Json;
|
||||||
use rocket_dyn_templates::{context, Template};
|
use rocket_dyn_templates::{context, Template};
|
||||||
use rocket_session_store::{Session, SessionResult};
|
use rocket_session_store::{Session, SessionResult};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use crate::models::user::UserModel;
|
use crate::models::user::UserModel;
|
||||||
use crate::SessionData;
|
use crate::{GlobalMetadata, SessionData};
|
||||||
|
|
||||||
#[get("/help/about")]
|
#[get("/help/about")]
|
||||||
pub fn about(route: &Route) -> Template {
|
pub fn about(route: &Route, meta: &State<GlobalMetadata>) -> Template {
|
||||||
Template::render("about", context! { route: route.uri.path() })
|
Template::render("about", context! { route: route.uri.path(), meta: meta.inner() })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
--accent-color: rgb(231, 148, 162);
|
--accent-color: rgb(231, 148, 162);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background-image: linear-gradient(to right, #fbc2eb 0%, #a6c1ee 20%);
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
{{#> layouts/main }}
|
{{#> layouts/main }}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1>{{ meta.app_name }} <span class="tag">v{{meta.app_version}}</span></h1>
|
||||||
|
<p>Open source project <a href="{{meta.repo_url}}"><b>{{ meta.app_name }}</b> (source code)</a></p>
|
||||||
<h4>Credits</h4>
|
<h4>Credits</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://www.flaticon.com/free-icons/default" title="default icons">Default icons created by kliwir art -
|
<li><a href="https://www.flaticon.com/free-icons/default" title="default icons">Default user icon created by kliwir art -
|
||||||
Flaticon</a></li>
|
Flaticon</a></li>
|
||||||
<li><a href="https://webgradients.com/">https://webgradients.com/</a></li>
|
<li><a href="https://webgradients.com/">https://webgradients.com/</a></li>
|
||||||
|
<li><a href="https://www.seafile.com/">https://www.seafile.com/</a> - For inspiration</li>
|
||||||
|
<li><a href="https://fontawesome.com/">https://fontawesome.com/</a> - For icons</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue