Browse Source

Who Action Tweaks

Another piece of the "A massive commit" commit.

!enhancement - ?action=who has an inconsistency. The second page index
and "show" select box are outside the main content box, yet the top one
is inside of it. Moved the second one back into the main box and fixed
all alignment issues with the second box.
!enhancement - ?action=who the upper show box had some inconstancies
with alignment in comparison to the pages block.

Signed-off-by: emanuele <emanuele45@gmail.com>
Matthew Kerle 12 years ago
parent
commit
aacb760434
2 changed files with 31 additions and 16 deletions
  1. 16 16
      Themes/default/Who.template.php
  2. 15 0
      Themes/default/css/index.css

+ 16 - 16
Themes/default/Who.template.php

@@ -26,7 +26,7 @@ function template_main()
 				<div class="pagesection">
 					<div class="pagelinks floatleft">', $context['page_index'], '</div>';
 		echo '
-					<div class="selectbox floatright">', $txt['who_show1'], '
+					<div class="selectbox floatright" id="upper_show">', $txt['who_show1'], '
 						<select name="show_top" onchange="document.forms.whoFilter.show.value = this.value; document.forms.whoFilter.submit();">';
 
 		foreach ($context['show_methods'] as $value => $label)
@@ -102,22 +102,22 @@ function template_main()
 	echo '
 					</tbody>
 				</table>
-			</div>
-			<div class="pagesection">
-				<div class="pagelinks floatleft">', $context['page_index'], '</div>';
-
-	echo '
-				<div class="selectbox floatright">', $txt['who_show1'], '
-					<select name="show" onchange="document.forms.whoFilter.submit();">';
-
-	foreach ($context['show_methods'] as $value => $label)
+				<div class="pagesection" id="lower_pagesection">
+					<div class="pagelinks floatleft" id="lower_pagelinks">', $context['page_index'], '</div>';
+	
 		echo '
-						<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
-	echo '
-					</select>
-					<noscript>
-						<input type="submit" value="', $txt['go'], '" class="button_submit" />
-					</noscript>
+					<div class="selectbox floatright">', $txt['who_show1'], '
+						<select name="show" onchange="document.forms.whoFilter.submit();">';
+	
+		foreach ($context['show_methods'] as $value => $label)
+			echo '
+							<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
+		echo '
+						</select>
+						<noscript>
+							<input type="submit" value="', $txt['go'], '" class="button_submit" />
+						</noscript>
+					</div>
 				</div>
 			</div>
 		</form>

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

@@ -4219,4 +4219,19 @@ div#manage_boards dl dd textarea[name=desc] {
 
 .bold_text {
 	font-weight: bold;
+}
+
+/* Styles for "Who" action.
+-------------------------------------------------- */	
+.action_who #upper_show {	
+	margin-top: 6px;
+}
+.action_who #lower_pagesection {
+	margin-top: 4px;
+}
+.action_who #lower_pagelinks {
+	margin-top: -4px;
+}
+.action_who select {
+	margin-top: -1px !important;
 }