From 9c1a9322142dc243b068ff61f762522b31de76b2 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 4 Jan 2021 21:17:19 -0800 Subject: [PATCH] Clean Up Post Headers --- Cargo.lock | 2 +- Cargo.toml | 2 +- static/style.css | 1 + templates/post.html | 2 +- templates/search.html | 3 ++- templates/subreddit.html | 1 + templates/user.html | 1 + 7 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59f8849..f551e0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1006,7 +1006,7 @@ checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" [[package]] name = "libreddit" -version = "0.2.5" +version = "0.2.6" dependencies = [ "actix-web", "askama", diff --git a/Cargo.toml b/Cargo.toml index d4f15df..e81721d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "libreddit" description = " Alternative private front-end to Reddit" license = "AGPL-3.0" repository = "https://github.com/spikecodes/libreddit" -version = "0.2.5" +version = "0.2.6" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2018" diff --git a/static/style.css b/static/style.css index 616da76..e75c512 100644 --- a/static/style.css +++ b/static/style.css @@ -391,6 +391,7 @@ input[type="submit"]:hover { color: var(--accent); } .post_media { max-width: 90%; align-self: center; + margin-top: 15px; } .post_body { diff --git a/templates/post.html b/templates/post.html index 45322c1..f0a5126 100644 --- a/templates/post.html +++ b/templates/post.html @@ -25,7 +25,6 @@ {% if item.flair.0 != "" %} {{ item.flair.0 }} {% endif %} - • {{ item.time }}
{{ item.body }}
@@ -54,6 +53,7 @@ {% if post.author_flair.0 != "" %} {{ post.author_flair.0 }} {% endif %} + • {{ post.time }} diff --git a/templates/search.html b/templates/search.html index 7d49f28..3a87dad 100644 --- a/templates/search.html +++ b/templates/search.html @@ -35,7 +35,8 @@ {% if post.author_flair.0 != "" %} {{ post.author_flair.0 }} {% endif %} - {{ post.time }} + • + {{ post.time }}{% if post.flair.0 != "" %} diff --git a/templates/subreddit.html b/templates/subreddit.html index 20c888f..ad229aa 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -39,6 +39,7 @@ r/{{ post.community }} • u/{{ post.author }} + • {{ post.time }}
diff --git a/templates/user.html b/templates/user.html index d81b4c9..657d2d9 100644 --- a/templates/user.html +++ b/templates/user.html @@ -30,6 +30,7 @@ {% if post.author_flair.0 != "" %} {{ post.author_flair.0 }} {% endif %} + • {{ post.time }}