]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
services.cgi: minor cosmetics
authorRobin Roevens <robin.roevens@disroot.org>
Tue, 11 Oct 2022 22:01:55 +0000 (00:01 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 29 Oct 2022 08:56:48 +0000 (08:56 +0000)
* Singular 'Service' instead of plural 'Services' as column header of
  services table
* Sort list of services

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/services.cgi

index de946d755b422334ebdcd248d5b046f9a942c748..e35b04cae34cfa0a9c651150700eba15b883b8a3 100644 (file)
@@ -105,7 +105,7 @@ if ( $querry[0] =~ "processescpu"){
 <div align='center'>
 <table width='80%' cellspacing='1' class='tbl'>
 <tr>
-       <th align='left'><b>$Lang::tr{'services'}</b></th>
+       <th align='left'><b>$Lang::tr{'service'}</b></th>
        <th align='center' ><b>$Lang::tr{'status'}</b></th>
        <th align='center'><b>PID</b></th>
        <th align='center'><b>$Lang::tr{'memory'}</b></th>
@@ -174,7 +174,7 @@ END
        # Generate list of installed addon pak services
        my %paklist = &Pakfire::dblist("installed");
 
-       foreach my $pak (keys %paklist) {
+       foreach my $pak (sort keys %paklist) {
                my %metadata = &Pakfire::getmetadata($pak, "installed");
                        
                my $service;