summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/helpers/view/normal_view.phtml11
-rw-r--r--p/themes/Dark/freshrss.css4
-rw-r--r--p/themes/Flat/freshrss.css4
-rw-r--r--p/themes/Origine/freshrss.css4
4 files changed, 9 insertions, 14 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index af5ff03fe..652def98a 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -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) {
diff --git a/p/themes/Dark/freshrss.css b/p/themes/Dark/freshrss.css
index 8e2efd383..19809c215 100644
--- a/p/themes/Dark/freshrss.css
+++ b/p/themes/Dark/freshrss.css
@@ -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;
}
diff --git a/p/themes/Flat/freshrss.css b/p/themes/Flat/freshrss.css
index 80e0da330..894497656 100644
--- a/p/themes/Flat/freshrss.css
+++ b/p/themes/Flat/freshrss.css
@@ -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;
}
diff --git a/p/themes/Origine/freshrss.css b/p/themes/Origine/freshrss.css
index bedeff695..be549bf41 100644
--- a/p/themes/Origine/freshrss.css
+++ b/p/themes/Origine/freshrss.css
@@ -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;
}