Ver código fonte

! Fix the broken group key on index, and move more to the CSS

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 anos atrás
pai
commit
581b8ded9c

+ 2 - 2
Themes/default/BoardIndex.template.php

@@ -407,7 +407,7 @@ function template_ic_block_stats()
 
 function template_ic_block_online()
 {
-	global $context, $scripturl, $txt, $modSettings;
+	global $context, $scripturl, $txt, $modSettings, $settings;
 	// "Users online" - in order of activity.
 	echo '
 			<div class="title_barIC">
@@ -444,7 +444,7 @@ function template_ic_block_online()
 		// Showing membergroups?
 		if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
 			echo '
-				<span class="membergroups">[' . implode(',&nbsp;', $context['membergroups']). ']</span>';
+				<span class="membergroups">' . implode(',&nbsp;', $context['membergroups']). '</span>';
 	}
 
 	echo '

+ 6 - 0
Themes/default/css/index.css

@@ -1949,6 +1949,12 @@ ul#smfFadeScroller li {
 #upshrinkHeaderIC span.membergroups {
 	display: block;
 }
+#upshrinkHeaderIC span.membergroups:before {
+	content: '[';
+}
+#upshrinkHeaderIC span.membergroups:after {
+	content: ']';
+}
 #upshrinkHeaderIC p.last {
 	border-top: double #ddd;
 	padding-bottom: 0;