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
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2020-07-13 15:46:50 +02:00
1 parent f98a092566
commit b7fd6d2d94
28 files changed
+65 -41

No files matched your search

+22 -13
View File
@@ -72,20 +72,29 @@ $today = @strtotime('today');
?><div class="flux_content" dir="auto">
<div class="content <?= $content_width ?>">
<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a></h1>
<div class="author"><?php
$authors = $this->entry->authors();
if (is_array($authors)):
$first = true;
foreach ($authors as $author):
echo $first ? _t('gen.short.by_author') . ' ' : '· ';
$first = false;
?>
<em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em>
<?php endforeach; ?>
</div><?php
endif;
<div class="subtitle">
<div class="website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>">
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
<span><?= $this->feed->name() ?></span></a>
</div>
<div class="date"><?= $this->entry->date() ?></div>
<?php
$authors = $this->entry->authors();
if (!empty($authors) && is_array($authors)):
$first = true;
?>
<div class="author"><?php
foreach ($authors as $author):
echo $first ? _t('gen.short.by_author') . ' ' : '· ';
$first = false;
?>
<em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em>
<?php endforeach; ?>
</div><?php endif; ?>
</div>
<div class="text"><?php
echo $lazyload && $hidePosts ? lazyimg($this->entry->content()) : $this->entry->content();
?>
?></div>
</div><?php
$this->renderHelper('index/normal/entry_bottom');
+2 -3
View File
@@ -63,10 +63,9 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
echo ' — ';
endif;
echo $item->date();
?></div>
?></div><div class="text">
<?= $item->content() ?>
</div>
</div></div>
</div>
</div><?php
endforeach;
+1 -1
View File
@@ -797,7 +797,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #ababab;
font-size: 0.7rem;
}
+1 -1
View File
@@ -797,7 +797,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #ababab;
font-size: 0.7rem;
}
+1 -1
View File
@@ -1226,7 +1226,7 @@ form th {
.flux .website .favicon {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: rgba(54, 51, 48, 0.5);
font-size: 0.85rem;
}
+1 -1
View File
@@ -1227,7 +1227,7 @@ form th {
.flux .website .favicon {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: rgba(54, 51, 48, 0.5);
font-size: 0.85rem;
}
+1 -1
View File
@@ -933,7 +933,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -941,7 +941,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -810,7 +810,7 @@ a.btn {
margin: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -810,7 +810,7 @@ a.btn {
margin: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -829,7 +829,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -829,7 +829,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -1234,7 +1234,7 @@ form th {
.flux .website .favicon {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: rgba(48, 49, 54, 0.5);
font-size: 0.85rem;
}
+1 -1
View File
@@ -1235,7 +1235,7 @@ form th {
.flux .website .favicon {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: rgba(48, 49, 54, 0.5);
font-size: 0.85rem;
}
+1 -1
View File
@@ -862,7 +862,7 @@ a.btn,
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
@@ -862,7 +862,7 @@ a.btn,
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -847,7 +847,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -847,7 +847,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -823,7 +823,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -823,7 +823,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -924,7 +924,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -932,7 +932,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
color: #666;
font-size: 0.7rem;
}
+1 -1
View File
@@ -753,7 +753,7 @@ form th {
.flux.not_read:not(.current):hover .item.title {
background: #fff3ed;
}
.flux .date {
.flux .item.date {
color: #969696;
font-size: 0.7rem;
}
+1 -1
View File
@@ -753,7 +753,7 @@ form th {
.flux.not_read:not(.current):hover .item.title {
background: #fff3ed;
}
.flux .date {
.flux .item.date {
color: #969696;
font-size: 0.7rem;
}
+1 -1
View File
@@ -653,7 +653,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
font-size: 0.7rem;
}
+1 -1
View File
@@ -653,7 +653,7 @@ a.btn {
padding: 5px;
}
.flux .date {
.flux .item.date {
font-size: 0.7rem;
}
+8
View File
@@ -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;
}
+9 -1
View File
@@ -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;
}