]> err.no Git - varnish/commitdiff
Some minor cosmetics and bugs discovered during documentation writing.
authorpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Feb 2009 14:10:35 +0000 (14:10 +0000)
committerpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Feb 2009 14:10:35 +0000 (14:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3787 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/webgui/Varnish/DB.pm
varnish-tools/webgui/Varnish/RequestHandler.pm
varnish-tools/webgui/css/web.css
varnish-tools/webgui/templates/node_management.tmpl

index 3f3f1fc4c6dacc8c8723b8c267dd59026bc03dc6..d03df4963e197e1bfe35b203d5436c1bda3c4171 100644 (file)
@@ -131,7 +131,7 @@ use Varnish::DB_Data;
                my $sth = $dbh->prepare($sql);
                $sth->execute($node->get_id());
 
-               $sql = "DELETE FROM parameters WHERE node_id = ?";
+               $sql = "DELETE FROM stat WHERE node_id = ?";
                $sth = $dbh->prepare($sql);
                $sth->execute($node->get_id());
        
index 2139526436ac6ca2fc88ad4ffbed482a360ba8b6..358c72e7eaac9406892cd73ed938ede5a0af8d61 100644 (file)
@@ -837,11 +837,13 @@ FIND_ACTIVE_VCL:
                                Varnish::NodeManager->add_node($node, $inherit_settings);
                                $status .= "Node " . $node->get_name() . " added successfully.";
                                
+                               my $group = Varnish::NodeManager->get_group($param{'group_id'});
+                               my $group_name = ($group ? $group->get_name() : "");
                                log_info("[" . $node->get_name() . "] [Added node]"
                                        . " [name=" . $node->get_name() . "]"
                                        . " [address=" . $node->get_address() . "]"
                                        . " [port=" . $node->get_port() . "]"
-                                       . " [group=" . $param{'group_name'} . "]"
+                                       . " [group=" . $group_name . "]"
                                        . " [management_port=" . $node->get_management_port() . "]");
                        }
                        else {
@@ -864,11 +866,15 @@ FIND_ACTIVE_VCL:
                                
                                Varnish::NodeManager->update_node($node);
 
+                               $status .= "Node " . $node->get_name() . " updated successfully.";
+
+                               my $group = Varnish::NodeManager->get_group($param{'node_group_id'});
+                               my $group_name = ($group ? $group->get_name() : "");
                                log_info("[" . $node->get_name() . "] [Updated node]"
                                        . " [name=" . $node->get_name() . "]"
                                        . " [address=" . $node->get_address() . "]"
                                        . " [port=" . $node->get_port() . "]"
-                                       . " [group=" . $param{'group_name'} . "]"
+                                       . " [group=" . $group_name . "]"
                                        . " [management_port=" . $node->get_management_port() . "]");
                        }
                }
index 1fa1bcc23554bb48cbd988a0ba41e73368319ddc..f25a23c295b26bcb4ab8e9aab4c1345b3ad73d42 100644 (file)
@@ -189,10 +189,6 @@ input.removeNode {
        padding: 5px;
 }
 
-td.addNodeBorder {
-       margin: 15px;
-}
-
 img.goToNodeManagement {
        border-width: 0 0 1px 0;
 }
index ba78c545e067b106c5e684339004655220957430..056f424b6a07027dcbe5d73767fae422b3fae08e 100644 (file)
@@ -42,7 +42,7 @@ document.getElementById('group_name').focus();
 </TMPL_IF>
 <td class="header">Address</td>
 <td class="header">Port</td>
-<td class="header">Management port</td>
+<td class="header">Management<br/>port</td>
 <td></td></tr>
 <TMPL_LOOP NAME=NODE_INFOS>
 <TMPL_IF NAME=__ODD__>
@@ -155,7 +155,7 @@ value="<TMPL_VAR NAME=ID>">
 <td><input type="text" name="port" size=5/></td>
 <td><input type="text" name="management_port" value="<TMPL_VAR NAME=DEFAULT_MANAGEMENT_PORT>"/></td>
 <TMPL_IF NAME=SHOW_INHERIT_SETTINGS>
-<td><input type="checkbox" name="inherit_settings" value="true" <TMPL_IF NAME=INHERIT_SETTINGS>checked</TMPL_IF>></td><td>Group inherit settings</td>
+<td colspan=3> <input type="checkbox" name="inherit_settings" value="true" <TMPL_IF NAME=INHERIT_SETTINGS>checked</TMPL_IF>>Group inherit<br/> settings</td>
 </TMPL_IF>
 <td>
 <input type="hidden" name="group_id" value="<TMPL_VAR NAME=GROUP_ID>"/>