Procházet zdrojové kódy

Merge branch 'bigMarkAsRead' of https://github.com/Alkarex/FreshRSS into Alkarex-bigMarkAsRead

Marien Fressinaud před 12 roky
rodič
revize
60623c63ff

+ 5 - 1
app/views/helpers/pagination.phtml

@@ -10,7 +10,11 @@
 	<?php $params[$getteur] = $this->next; ?>
 	<a id="load_more" href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Translate::t ('load_more'); ?></a>
 	<?php } else { ?>
-	<?php echo Translate::t ('nothing_to_load'); ?>
+	<div class="bigMarkAsRead">
+		<p><?php echo Translate::t ('nothing_to_load'); ?></p>
+		<p class="bigTick">✔</p>
+		<p><?php echo Translate::t ('mark_all_read'); ?></p>
+	</div>
 	<?php } ?>
 	</li>
 </ul>

+ 6 - 0
app/views/javascript/main.phtml

@@ -221,6 +221,12 @@ function init_posts () {
 		$(this).attr ('target', '_blank');
 	});
 
+	$(".bigMarkAsRead").click(function() {
+		url = $(".nav_menu a.read_all").attr ("href");
+		redirect (url, false);
+		return false;
+	});
+
 	<?php if ($mark['site'] == 'yes') { ?>
 	$(".flux .link a").click (function () {
 		mark_read($(this).parent().parent().parent(), true);

+ 15 - 0
public/themes/default/freshrss.css

@@ -491,6 +491,21 @@
 	font-size: 0;
 }
 
+.bigMarkAsRead {
+	background:#CCC;
+	color:#FFF;
+	cursor:pointer;
+	height:32em;
+	text-shadow: 0 -1px 0 #AAA;
+}
+.bigMarkAsRead:hover {
+	background:#06C;
+}
+.bigTick {
+	font-size:72pt;
+	margin:32px 0 8px 0;
+}
+
 /*** NOTIFICATION ***/
 .notification {
 	position: fixed;

+ 15 - 0
public/themes/flat-design/freshrss.css

@@ -494,6 +494,21 @@ body {
 	font-size: 0;
 }
 
+.bigMarkAsRead {
+	background:#34495E;
+	color:#FFF;
+	cursor:pointer;
+	height:32em;
+	text-shadow: 0 -1px 0 #AAA;
+}
+.bigMarkAsRead:hover {
+	background:#D04200;
+}
+.bigTick {
+	font-size:72pt;
+	margin:32px 0 8px 0;
+}
+
 /*** NOTIFICATION ***/
 .notification {
 	position: fixed;