/[smeserver]/rpms/e-smith-hosts/sme7/e-smith-hosts-1.14.0-hostentriesformatting.patch2
ViewVC logotype

Annotation of /rpms/e-smith-hosts/sme7/e-smith-hosts-1.14.0-hostentriesformatting.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 15:34:23 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-hosts-1_14_0-14_el4_sme, e-smith-hosts-1_14_0-12_el4_sme, e-smith-hosts-1_14_0-10_el4_sme, e-smith-hosts-1_14_0-13_el4_sme, e-smith-hosts-1_14_0-8_el4_sme, e-smith-hosts-1_14_0-7_el4_sme
Import on branch sme7 of package e-smith-hosts-1.14.0-7.el4.sme.src.rpm

1 slords 1.1 diff -ru e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm work+patched/e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm
2     --- e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm 2006-06-22 11:01:11.000000000 -0400
3     +++ work+patched/e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm 2006-06-22 11:05:18.000000000 -0400
4     @@ -135,20 +135,20 @@
5     return undef;
6     }
7    
8     - print $q->start_table ({-CLASS => "sme-noborders"}),"\n";
9     - print $q->start_Tr,"\n";
10     - print $q->start_table ({-CLASS => "sme-border"}),"\n";
11     -
12     - print $self->localise('ADD_HOSTNAME');
13     + print $q->start_Tr,"<td>",$q->start_table ({-CLASS => "sme-noborders"}),"\n";
14     + print $q->start_Tr,"<td>",$self->localise('ADD_HOSTNAME'),"</td>",$q->end_Tr,"\n";
15    
16     my $hosts_db = esmith::HostsDB->open();
17    
18     foreach my $d (@{$self->domains_list()})
19     {
20     + print $q->start_Tr,"<td>","\n";
21     print $q->h3($self->localise('CURRENT_HOSTNAMES_FOR_DOMAIN', {domain => $d})),"\n";
22     + print "</td>",$q->end_Tr,"\n";
23    
24     if (my @hosts = $hosts_db->get_hosts_by_domain($d))
25     {
26     + print $q->start_Tr,"<td>\n",$q->start_table ({-CLASS => "sme-border"}),"\n";
27     print $q->Tr (esmith::cgi::genSmallCell($q, $self->localise('HOSTNAME'),"header"),
28     esmith::cgi::genSmallCell($q, $self->localise('LOCATION'),"header"),
29     esmith::cgi::genSmallCell($q, $self->localise('IP_ADDRESS'),"header"),
30     @@ -156,12 +156,16 @@
31     esmith::cgi::genSmallCell($q, $self->localise('ACTION'),"header",2));
32     $self->print_host_row($_) foreach @hosts;
33     print $q->end_table, "\n";
34     + print "</td>",$q->end_Tr,"\n";
35     }
36     else
37     {
38     + print $q->start_Tr,"<td>\n";
39     print $self->localise('NO_HOSTS_FOR_THIS_DOMAIN');
40     + print "</td>",$q->end_Tr,"\n";
41     }
42     }
43     + print $q->end_table,"\n";
44     return undef;
45     }
46    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed