mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-12 03:18:25 -04:00
Message article disponibles un cran au dessus
@marienfressinaud Que diras-tu de mettre le message un cran plus haut, juste au dessus de "aujourd'hui' ? En effet, la liste peut bien commencer à "Hier" par exemple, et du coup le message semblerait un peu anachronique. De plus, ça permet de sortir un test d'une boucle. Il reste peut-être à optimiser l'adresse. La version précédente avec _url() générait une exception chez moi. https://github.com/marienfressinaud/FreshRSS/issues/379
This commit is contained in:
@@ -38,6 +38,9 @@ if (!empty($this->entries)) {
|
||||
?>
|
||||
|
||||
<div id="stream" class="normal<?php echo $hidePosts ? ' hide_posts' : ''; ?>"><?php
|
||||
?><div id="new-article">
|
||||
<a href="./"><?php echo Minz_Translate::t ('new_article'); ?></a>
|
||||
</div><?php
|
||||
foreach ($this->entries as $item) {
|
||||
if ($display_today && $item->isDay (FreshRSS_Days::TODAY, $this->today)) {
|
||||
?><div class="day" id="day_today"><?php
|
||||
@@ -62,14 +65,6 @@ if (!empty($this->entries)) {
|
||||
?></div><?php
|
||||
$display_others = false;
|
||||
}
|
||||
|
||||
if ($this->entries[0]->id () === $item->id ()) {
|
||||
?><div id="new-article">
|
||||
<a href="<?php echo _url(); ?>"><?php
|
||||
echo Minz_Translate::t ('new_article');
|
||||
?></a></div><?php
|
||||
}
|
||||
|
||||
?><div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>">
|
||||
<ul class="horizontal-list flux_header"><?php
|
||||
if ($this->loginOk) {
|
||||
|
||||
@@ -233,13 +233,13 @@
|
||||
#new-article:hover {
|
||||
background: #4A5D7A;
|
||||
}
|
||||
#new-article a {
|
||||
#new-article > a {
|
||||
display: block;
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
#new-article a:hover {
|
||||
#new-article > a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -226,13 +226,13 @@ body {
|
||||
#new-article:hover {
|
||||
background: #2980b9;
|
||||
}
|
||||
#new-article a {
|
||||
#new-article > a {
|
||||
display: block;
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
#new-article a:hover {
|
||||
#new-article > a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -239,13 +239,13 @@
|
||||
#new-article:hover {
|
||||
background: #0066CC;
|
||||
}
|
||||
#new-article a {
|
||||
#new-article > a {
|
||||
display: block;
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
#new-article a:hover {
|
||||
#new-article > a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user