From 782955e2c40b033df73f4654b9620088182ee0fe Mon Sep 17 00:00:00 2001 From: Bat Date: Wed, 18 Jul 2018 23:37:05 +0200 Subject: [PATCH] Hide social button when not connected Fixes #143 --- po/de.po | 3 +++ po/en.po | 3 +++ po/fr.po | 3 +++ po/pl.po | 3 +++ po/plume.pot | 3 +++ static/main.css | 7 ++++++ templates/posts/details.html.tera | 40 +++++++++++++++++-------------- 7 files changed, 44 insertions(+), 18 deletions(-) diff --git a/po/de.po b/po/de.po index 5a870f9a..9269fb9e 100644 --- a/po/de.po +++ b/po/de.po @@ -333,3 +333,6 @@ msgid "One author in this blog: " msgid_plural "{{ count }} authors in this blog: " msgstr[0] "Du bist kein Autor in diesem Blog." msgstr[1] "Du bist kein Autor in diesem Blog." + +msgid "Login or use your Fediverse account to interact with this article" +msgstr "" diff --git a/po/en.po b/po/en.po index ea0cd335..a53fb120 100644 --- a/po/en.po +++ b/po/en.po @@ -326,3 +326,6 @@ msgid "One author in this blog: " msgid_plural "{{ count }} authors in this blog: " msgstr[0] "" msgstr[1] "" + +msgid "Login or use your Fediverse account to interact with this article" +msgstr "" diff --git a/po/fr.po b/po/fr.po index 4d8f0db7..5721c9fe 100644 --- a/po/fr.po +++ b/po/fr.po @@ -327,3 +327,6 @@ msgid "One author in this blog: " msgid_plural "{{ count }} authors in this blog: " msgstr[0] "{{ count }} aut⋅eur⋅rice dans ce blog : " msgstr[1] "{{ count }} aut⋅eur⋅rice⋅s dans ce blog : " + +msgid "Login or use your Fediverse account to interact with this article" +msgstr "Connectez-vous ou utilisez votre compte sur le Fediverse pour interagir avec cet article" diff --git a/po/pl.po b/po/pl.po index 63ecaa83..937bb924 100644 --- a/po/pl.po +++ b/po/pl.po @@ -336,5 +336,8 @@ msgstr[0] "Nie jesteś autorem tego bloga." msgstr[1] "Nie jesteś autorem tego bloga." msgstr[2] "Nie jesteś autorem tego bloga." +msgid "Login or use your Fediverse account to interact with this article" +msgstr "" + #~ msgid "Logowanie" #~ msgstr "Zaloguj się" diff --git a/po/plume.pot b/po/plume.pot index a5c0d95c..c604ef14 100644 --- a/po/plume.pot +++ b/po/plume.pot @@ -319,3 +319,6 @@ msgid "One author in this blog: " msgid_plural "{{ count }} authors in this blog: " msgstr[0] "" msgstr[1] "" + +msgid "Login or use your Fediverse account to interact with this article" +msgstr "" diff --git a/static/main.css b/static/main.css index 124c37ff..541f1ac7 100644 --- a/static/main.css +++ b/static/main.css @@ -22,6 +22,13 @@ a, a:visited { outline: none; } +.center { + text-align: center; + font-weight: bold; + opacity: 0.6; + padding: 5em; +} + /* * == Header == */ diff --git a/templates/posts/details.html.tera b/templates/posts/details.html.tera index 5d9cc1f2..baf0d8e2 100644 --- a/templates/posts/details.html.tera +++ b/templates/posts/details.html.tera @@ -36,26 +36,30 @@

{{ "This article is under the {{ license }} license." | _(license=post.license) }}

-
- + {% if has_reshared %} + + {% else %} + + {% endif %} + +
+ {% else %} +

{{ "Login or use your Fediverse account to interact with this article" | _ }}

+ {% endif %}

{{ "Comments" | _ }}