View Issue Details

IDProjectCategoryView StatusLast Update
1191RackTablesdefaultpublic2015-06-11 05:50
ReporterWhiteTiger Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Summary1191: New Main page
DescriptionI changed the main page and I think that was a better view.
Tagsinterface

Activities

WhiteTiger

WhiteTiger

2014-03-06 22:29

reporter  

new-main-page.txt (1,198 bytes)   
# diff interface.php.ori interface.php
146,152d145
< ?>
< <table border=0 cellpadding=0 cellspacing=0 width='100%'>
<       <tr>
<               <td>
<                       <div style='text-align: center; margin: 10px; '>
<                       <table width='100%' cellspacing=0 cellpadding=20 class=mainmenu border=0>
< <?php
155,161c148,153
<       echo '<tr>';
<       foreach ($row as $column)
<               if ($column === NULL)
<                       echo '<td>&nbsp;</td>';
<               else
<                       renderIndexItem ($column);
<       echo '</tr>';
---
>       foreach ($row as $column){
>               echo "<div class='icons' style='float: left;text-align:center;'";
>               renderIndexItem ($column);
>               echo "</div>";
>       }
>
163,169d154
< ?>
<                       </table>
<                       </div>
<               </td>
<       </tr>
< </table>
< <?php


s# diff pi.css.old pi.css
12a13,27
> .icons h1 a img {
>       width: 150px !important;
>       height: 150px !important;
> }
>
> .icons h1 {
>       font-size: 1.2em;
> }
>
> .icons {
>       margin-left: 15px;
> }
>
>
>
new-main-page.txt (1,198 bytes)   
infrastation

infrastation

2014-03-18 14:55

administrator  

issue_1191.patch (1,340 bytes)   
diff --git a/wwwroot/css/pi.css b/wwwroot/css/pi.css
index 5b2f4e7..5f907bf 100644
--- a/wwwroot/css/pi.css
+++ b/wwwroot/css/pi.css
@@ -10,6 +10,19 @@
 	td.atom div a { font-weight: normal; }
 }
 
+.icons h1 a img {
+	width: 150px !important;
+	height: 150px !important;
+}
+
+.icons h1 {
+	font-size: 1.2em;
+}
+
+.icons {
+	margin-left: 15px;
+}
+
 td.submit {
 	text-align: center;
 }
diff --git a/wwwroot/inc/interface.php b/wwwroot/inc/interface.php
index 5435b3e..355cb7a 100644
--- a/wwwroot/inc/interface.php
+++ b/wwwroot/inc/interface.php
@@ -143,30 +143,13 @@ function renderIndexItem ($ypageno)
 function renderIndex ()
 {
 	global $indexlayout;
-?>
-<table border=0 cellpadding=0 cellspacing=0 width='100%'>
-	<tr>
-		<td>
-			<div style='text-align: center; margin: 10px; '>
-			<table width='100%' cellspacing=0 cellpadding=20 class=mainmenu border=0>
-<?php
-foreach ($indexlayout as $row)
-{
-	echo '<tr>';
-	foreach ($row as $column)
-		if ($column === NULL)
-			echo '<td>&nbsp;</td>';
-		else
+	foreach ($indexlayout as $row)
+		foreach ($row as $column)
+		{
+			echo "<div class='icons' style='float: left;text-align:center;'";
 			renderIndexItem ($column);
-	echo '</tr>';
-}
-?>
-			</table>
-			</div>
-		</td>
-	</tr>
-</table>
-<?php
+			echo "</div>";
+		}
 }
 
 function getRenderedAlloc ($object_id, $alloc)
issue_1191.patch (1,340 bytes)   
infrastation

infrastation

2014-03-18 14:56

administrator  

issue_1191_screenshot.png (186,599 bytes)   
issue_1191_screenshot.png (186,599 bytes)   
adoom42

adoom42

2015-06-11 05:50

administrator   ~0002873

Based on the screenshot, it appears the layout is dynamic based on the size of the browser window. If the window is very wide, many if not all links would be displayed in the top row.

I personally prefer it when things stay in the same place, especially on frequently-visited landing pages. I expect the Configuration link to be in the lower left, always.

Maybe others will come back with a different consensus.

Issue History

Date Modified Username Field Change
2014-03-06 22:29 WhiteTiger New Issue
2014-03-06 22:29 WhiteTiger File Added: new-main-page.txt
2014-03-06 22:29 WhiteTiger Tag Attached: interface
2014-03-18 14:55 infrastation File Added: issue_1191.patch
2014-03-18 14:56 infrastation File Added: issue_1191_screenshot.png
2015-06-11 05:50 adoom42 Note Added: 0002873
2015-06-11 05:50 adoom42 Status new => closed
2015-06-11 05:50 adoom42 Resolution open => won't fix