gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14968 - in gauger: . css


From: gnunet
Subject: [GNUnet-SVN] r14968 - in gauger: . css
Date: Tue, 12 Apr 2011 18:36:20 +0200

Author: bartpolot
Date: 2011-04-12 18:36:20 +0200 (Tue, 12 Apr 2011)
New Revision: 14968

Modified:
   gauger/css/style.css
   gauger/template.php
   gauger/template_graph.php
Log:
Improved host selection in metric graphs


Modified: gauger/css/style.css
===================================================================
--- gauger/css/style.css        2011-04-12 16:20:32 UTC (rev 14967)
+++ gauger/css/style.css        2011-04-12 16:36:20 UTC (rev 14968)
@@ -333,16 +333,19 @@
     top:                2px;
 }
 
-.host_selector {
-    text-align:         left;
-}
-
-.host_selector ul {
+.control-column ul {
     padding-left:       6px;
     margin:             0px;
     list-style-type:    none;
+    text-align:         left;
+    font-size:          90%;
 }
 
+.control-column input {
+    border:             0px;
+    background:         white;
+}
+
 .footer-shadow {
     height:             50px;
     background-image:   url("images/f.png");

Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-04-12 16:20:32 UTC (rev 14967)
+++ gauger/template.php 2011-04-12 16:36:20 UTC (rev 14968)
@@ -362,13 +362,13 @@
                     }
                 });
                 $(".plot-all-hosts").click(function(){
-                    $(this).parents("td").find(".plot-host").attr('checked', 
true);
+                    $(this).parents("ul").find(".plot-host").attr('checked', 
true);
                     $(this).parents("tr").find(".plot").each(function() {
                         this.src = this.src.replace(/&h=[^&]+/g, '');
                     });
                 });
                 $(".plot-no-hosts").click(function(){
-                    $(this).parents("td").find(".plot-host").attr('checked', 
false);
+                    $(this).parents("ul").find(".plot-host").attr('checked', 
false);
                 });
                 $(".plot-host").click(function(){
                     var hosts = "";

Modified: gauger/template_graph.php
===================================================================
--- gauger/template_graph.php   2011-04-12 16:20:32 UTC (rev 14967)
+++ gauger/template_graph.php   2011-04-12 16:36:20 UTC (rev 14968)
@@ -24,7 +24,6 @@
     <tr>
         <th class="control-column">Controls</th>
         <th>Graph</th>
-        <th>Hosts</th>
     </tr>
     <tr>
         <th class="control-column">
@@ -44,19 +43,19 @@
                     <input class="auto_max" type="checkbox" <?php 
if(get_session('x_max_a')) echo 'checked="checked"'?>/>
                 </div>
             </div>
-            <br/><br/>
+            <hr/>
             <span>Normalize<input type="checkbox" id="norm"/></span>
-            <br/><br/>
+            <hr/>
             <a href="#" onclick="get_command(this); return false;" >Get 
Source</a>
-        </th>
-        <td height="<?php echo get_session('png_y_size')+2 ?>" width="<?php 
echo get_session('png_x_size')+2 ?>"><img class="plot" src="plot.php?g=<?php 
echo $currentg ?>" alt="loading..."/></td>
-        <td class="host_selector">
+            <hr/>
             <ul>
             <?php foreach ($hosts as $host => $counters): ?>
                 <?php if(array_search($currentg, $counters) !== FALSE): ?>
                     <li>
                     <input type="checkbox" class="plot-host" checked="true"/>
-                    <a href="?host=<?php echo $host ?>"><?php echo $host ?></a>
+                    <a href="?host=<?php echo $host ?>" title="<?php echo 
$host ?>">
+                        <?php echo (strlen($host) > 10) ? 
substr($host,0,8).'...' : $host ?>
+                    </a>
                     <br />
                     </li>
                 <?php endif; ?>
@@ -66,6 +65,9 @@
                     <input type="button" class="plot-no-hosts" value="None"/>
                 </li>
             </ul>
+        </th>
+        <td height="<?php echo get_session('png_y_size')+2 ?>" width="<?php 
echo get_session('png_x_size')+2 ?>">
+            <img class="plot" src="plot.php?g=<?php echo $currentg ?>" 
alt="loading..."/>
         </td>
     </tr>
 </table>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]