From 2642fa80e8c37490171615802e59248172f174c6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 18 Dec 2022 11:52:49 +0100 Subject: [PATCH] Add translation contributors to edition-3 page template too --- blog/sass/css/edition-3/main.scss | 7 +++++++ blog/templates/edition-3/page.html | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/blog/sass/css/edition-3/main.scss b/blog/sass/css/edition-3/main.scss index f5c2130b..d75dd3b5 100644 --- a/blog/sass/css/edition-3/main.scss +++ b/blog/sass/css/edition-3/main.scss @@ -653,6 +653,13 @@ main img { color: #999999; } +.translation_contributors { + display: block; + margin-top: 0.5rem; + font-size: 0.9rem; + opacity: 0.7; +} + .post-category { margin-right: 0.5rem; text-transform: uppercase; diff --git a/blog/templates/edition-3/page.html b/blog/templates/edition-3/page.html index 3975c0da..3159a71b 100644 --- a/blog/templates/edition-3/page.html +++ b/blog/templates/edition-3/page.html @@ -74,6 +74,17 @@ {%- endif -%} @{{user}} {%- endfor %}. + + {%- if page.extra.translation_contributors %} + + {{ trans(key="translation_contributors", lang=lang) }} {% for user in page.extra.translation_contributors -%} + {%- if not loop.first -%} + {%- if loop.last %} {{ trans(key="word_separator", lang=lang) }} {% else %}, {% endif -%} + {%- endif -%} + @{{user}} + {%- endfor %}. + + {% endif -%}

{% endif -%}