diff --git a/src/static.rs b/src/static.rs index 87cc290..0d6ea05 100644 --- a/src/static.rs +++ b/src/static.rs @@ -71,6 +71,10 @@ async fn favicon(TypedHeader(tags): TypedHeader) -> Response { file!("favicon.svg", "image/svg+xml").response(&tags) } +async fn license(TypedHeader(tags): TypedHeader) -> Response { + file!("../license.txt", "text/plain; charset=utf-8").response(&tags) +} + async fn robots(TypedHeader(tags): TypedHeader) -> Response { file!("robots.txt", "text/plain; charset=utf-8").response(&tags) } @@ -82,6 +86,7 @@ async fn style(TypedHeader(tags): TypedHeader) -> Response { pub fn routes() -> Router { Router::new() .route("/favicon.svg", get(favicon)) + .route("/license.txt", get(license)) .route("/robots.txt", get(robots)) .route("/style.css", get(style)) } diff --git a/static/style.css b/static/style.css index 79c1df5..cf0cdd4 100644 --- a/static/style.css +++ b/static/style.css @@ -219,6 +219,9 @@ img { #001f3d 100% ); } +#license { + max-width: 400px; +} #code { background-color: #000000; border: 2px solid #E1DED5; diff --git a/templates/about.html b/templates/about.html index 0a5cb1e..fa8de2d 100644 --- a/templates/about.html +++ b/templates/about.html @@ -5,9 +5,17 @@ {% endblock %} {% block content %} -

- Released under - AGPLv3 - at GitHub. -

+

+

+ Written in Rust + and released under AGPLv3 + at GitHub. +

+ +

+ As stated in section 9 of AGPLv3, you do not need to accept the + license in order to use this website. Acceptance is only required + if you choose to modify or propogate any of the covered works. +

+
{% endblock %}