From de38f7ef18945e6cfd571906736406cc1fad4465 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:11:17 -0800 Subject: [PATCH] Fix post flairs --- Cargo.lock | 12 +++++++++--- static/style.css | 7 +++++++ templates/error.html | 5 ++++- templates/post.html | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1b45d2c..b6dab79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -896,14 +896,14 @@ dependencies = [ [[package]] name = "generator" -version = "0.6.23" +version = "0.6.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cdc09201b2e8ca1b19290cf7e65de2246b8e91fb6874279722189c4de7b94dc" +checksum = "a9fed24fd1e18827652b4d55652899a1e9da8e54d91624dc3437a5bc3a9f9a9c" dependencies = [ "cc", "libc", "log", - "rustc_version", + "rustversion", "winapi", ] @@ -1507,6 +1507,12 @@ dependencies = [ "semver", ] +[[package]] +name = "rustversion" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5d2a036dc6d2d8fd16fde3498b04306e29bd193bf306a57427019b823d5acd" + [[package]] name = "ryu" version = "1.0.5" diff --git a/static/style.css b/static/style.css index babbd17..9e8e14c 100644 --- a/static/style.css +++ b/static/style.css @@ -1096,6 +1096,13 @@ td, th { padding: 10px; } +/* Errors */ + +#error { text-align: center; } +#error h1 { margin-bottom: 10px; } +#error h3 { opacity: 0.85; } +#error a { color: var(--accent); } + /* Mobile */ @media screen and (max-width: 480px) { diff --git a/templates/error.html b/templates/error.html index 42067a7..00f9e28 100644 --- a/templates/error.html +++ b/templates/error.html @@ -2,5 +2,8 @@ {% block title %}Error: {{ msg }}{% endblock %} {% block sortstyle %}{% endblock %} {% block content %} -

{{ msg }}

+
+

{{ msg }}

+

Head back home?

+
{% endblock %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html index 8a3dfde..c6453ad 100644 --- a/templates/post.html +++ b/templates/post.html @@ -50,7 +50,7 @@ {% if post.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.flair.flair_parts) %} - + {% endif %} {% if post.flags.nsfw %} NSFW{% endif %}