瀏覽代碼

! Make use of that newly shorter date format to streamline the replies area

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 年之前
父節點
當前提交
d7392cdbe3
共有 2 個文件被更改,包括 10 次插入11 次删除
  1. 3 8
      Themes/default/MessageIndex.template.php
  2. 7 3
      Themes/default/css/index.css

+ 3 - 8
Themes/default/MessageIndex.template.php

@@ -262,14 +262,9 @@ function template_main()
 							<br class="clear" />
 						</div>
 					</td>
-					<td class="', $color_class, ' stats">
-						', $topic['replies'], ' ', $txt['replies'], '
-						<br />
-						', $topic['views'], ' ', $txt['views'], '
-					</td>
+					<td class="', $color_class, ' stats">', $topic['replies'], ' ', $txt['replies'], '<br />', $topic['views'], ' ', $txt['views'], '</td>
 					<td class="', $alternate_class, ' lastpost">
-						<a href="', $topic['last_post']['href'], '"><span class="generic_icons last_post" title="', $txt['last_post'], '"></span></a>
-						', sprintf($txt['last_post_topic'], $topic['last_post']['time'], $topic['last_post']['member']['link']), '
+						', sprintf($txt['last_post_topic'], '<a href="' . $topic['last_post']['href'] . '">' . $topic['last_post']['time'] . '</a>', $topic['last_post']['member']['link']), '
 					</td>';
 
 			// Show the quick moderation options?
@@ -390,7 +385,7 @@ function template_main()
 
 function template_topic_legend()
 {
-	global $context, $settings, $txt, $options, $modSettings;
+	global $context, $settings, $txt, $modSettings;
 
 	echo '
 	<div class="tborder" id="topic_icons">

+ 7 - 3
Themes/default/css/index.css

@@ -1933,7 +1933,7 @@ ul#smfFadeScroller li {
 }
 
 .fix_rtl_names {
-	display:inline-block;
+	display: inline-block;
 }
 
 /* Styles for the message (topic) index.
@@ -2960,6 +2960,10 @@ tr.windowbg td, tr.windowbg2 td, tr.approvebg td, tr.highlight2 td {
 	right: 4px;
 	bottom: -3px;
 }
+.topic_table .stats {
+	text-align: center;
+	line-height: 1.5em;
+}
 .topic_table table thead {
 	border-bottom: 1px solid #fff;
 }
@@ -2974,8 +2978,8 @@ tr.windowbg td, tr.windowbg2 td, tr.approvebg td, tr.highlight2 td {
 }
 .topic_table td.lastpost {
 	font-size: 0.9em;
-	line-height: 1.3em;
-	padding: 4px;
+	line-height: 1.5em;
+	padding: 4px 4px 4px 24px;
 }
 
 /* Sticky topics get a different background */