Changeset 3582


Ignore:
Timestamp:
2006-04-02T18:52:48+02:00 (12 years ago)
Author:
florian
Message:

Add color for install (green) / uninstall (red) packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/webif/files/www/cgi-bin/webif/ipkg.sh

    r3466 r3582  
    2222        link=$1 
    2323        gsub(/\+/,"%2B",link) 
    24         print "<tr><td>" $1 "</td><td><a href=\"ipkg.sh?action=remove&pkg=" link "\">@TR<<Uninstall>></td></tr>" 
     24        print "<tr><td>" $1 "</td><td><a href=\"ipkg.sh?action=remove&pkg=" link "\" style=\"color: red\">@TR<<Uninstall>></a></td></tr>" 
    2525} 
    2626' 
     
    4040        link=$3 
    4141        gsub(/\+/,"%2B",link) 
    42         print "<tr><td>" $3 "</td><td><a href=\"ipkg.sh?action=install&pkg=" link "\">@TR<<Install>></td></tr>" 
     42        print "<tr><td>" $3 "</td><td><a href=\"ipkg.sh?action=install&pkg=" link "\" style=\"color: green\">@TR<<Install>></a></td></tr>" 
    4343        current=$1 
    4444} 
Note: See TracChangeset for help on using the changeset viewer.