Ver Fonte

improved HTML (#3989)

maTh há 4 anos atrás
pai
commit
9f7a973ca0
2 ficheiros alterados com 10 adições e 6 exclusões
  1. 5 3
      app/views/index/normal.phtml
  2. 5 3
      app/views/index/reader.phtml

+ 5 - 3
app/views/index/normal.phtml

@@ -114,9 +114,11 @@ $today = @strtotime('today');
 	else:
 		ob_end_clean();	//Discard the articles headers, as we have no articles
 ?>
-<main id="stream" class="prompt alert alert-warn normal">
-	<h2><?= _t('index.feed.empty') ?></h2>
-	<a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a><br /><br />
+<main id="stream" class="normal">
+	<div class="prompt alert alert-warn">
+		<h2 class="alert-head"><?= _t('index.feed.empty') ?></h2>
+		<p><a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a></p>
+	</div>
 </main>
 <?php endif; ?>
 

+ 5 - 3
app/views/index/reader.phtml

@@ -82,8 +82,10 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
 	else:
 		ob_end_clean();	//Discard the articles headers, as we have no articles
 ?>
-<main id="stream" class="prompt alert alert-warn reader">
-	<h2><?= _t('index.feed.empty') ?></h2>
-	<a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a><br /><br />
+<main id="stream" class="reader">
+	<div class="prompt alert alert-warn">
+		<h2 class="alert-head"><?= _t('index.feed.empty') ?></h2>
+		<p><a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a></p>
+	</div>
 </main>
 <?php endif; ?>