From b7fd6d2d941e40e99ad9ac0cb5572a529cf9cb64 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 13 Jul 2020 15:46:50 +0200 Subject: [PATCH] Show feed name inside the article (#3081) * Show feed name inside the article #fix https://github.com/FreshRSS/FreshRSS/issues/3079 * Normal view add date in subtitle #fix https://github.com/FreshRSS/FreshRSS/issues/3079#issuecomment-650109551 --- app/views/index/normal.phtml | 35 ++++++++++++------- app/views/index/reader.phtml | 5 ++- p/themes/Alternative-Dark/adark.css | 2 +- p/themes/Alternative-Dark/adark.rtl.css | 2 +- p/themes/Ansum/ansum.css | 2 +- p/themes/Ansum/ansum.rtl.css | 2 +- p/themes/BlueLagoon/BlueLagoon.css | 2 +- p/themes/BlueLagoon/BlueLagoon.rtl.css | 2 +- p/themes/Dark/dark.css | 2 +- p/themes/Dark/dark.rtl.css | 2 +- p/themes/Flat/flat.css | 2 +- p/themes/Flat/flat.rtl.css | 2 +- p/themes/Mapco/mapco.css | 2 +- p/themes/Mapco/mapco.rtl.css | 2 +- p/themes/Origine-compact/origine-compact.css | 2 +- .../Origine-compact/origine-compact.rtl.css | 2 +- p/themes/Origine/origine.css | 2 +- p/themes/Origine/origine.rtl.css | 2 +- p/themes/Pafat/pafat.css | 2 +- p/themes/Pafat/pafat.rtl.css | 2 +- p/themes/Screwdriver/screwdriver.css | 2 +- p/themes/Screwdriver/screwdriver.rtl.css | 2 +- p/themes/Swage/swage.css | 2 +- p/themes/Swage/swage.rtl.css | 2 +- p/themes/base-theme/base.css | 2 +- p/themes/base-theme/base.rtl.css | 2 +- p/themes/base-theme/template.css | 8 +++++ p/themes/base-theme/template.rtl.css | 10 +++++- 28 files changed, 65 insertions(+), 41 deletions(-) diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index e56e99561..88b194a65 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -72,20 +72,29 @@ $today = @strtotime('today'); ?>

entry->title() ?>

-
entry->authors(); - if (is_array($authors)): - $first = true; - foreach ($authors as $author): - echo $first ? _t('gen.short.by_author') . ' ' : '· '; - $first = false; - ?> - - -
+ +
entry->date() ?>
+ entry->authors(); + if (!empty($authors) && is_array($authors)): + $first = true; + ?> +
+ + +
+
+
entry->content()) : $this->entry->content(); - ?> + ?>
renderHelper('index/normal/entry_bottom'); diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index c21fdb7f3..644cd09c6 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -63,10 +63,9 @@ $content_width = FreshRSS_Context::$user_conf->content_width; echo ' — '; endif; echo $item->date(); - ?> - + ?>
content() ?> -
+ div { + display: inline; +} + +.subtitle > div:not(:first-of-type)::before { + content: ' · '; +} + br { line-height: 1em; } diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css index cb2b5f474..eea8ae191 100644 --- a/p/themes/base-theme/template.rtl.css +++ b/p/themes/base-theme/template.rtl.css @@ -719,7 +719,7 @@ input[type="search"] { } .flux .item.title .author { - padding-right: 1rem; + padding-left: 1rem; color: #555; font-size: .9rem; font-weight: normal; @@ -781,6 +781,14 @@ input[type="search"] { overflow: auto; } +.subtitle > div { + display: inline; +} + +.subtitle > div:not(:first-of-type)::before { + content: ' · '; +} + br { line-height: 1em; }