rename p_adv

git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3675 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2017-02-01 21:19:27 +00:00
parent 3d979a292e
commit e71419b7e5
3 changed files with 6 additions and 8 deletions

View File

@ -9,7 +9,7 @@ require settings.class pkg.class
httpheader httpheader
proc pkgrow {name pkg} { proc pkgrow {name pkg} {
set class p_adv set class p_av
if {[dict exists $::pkgmeta $name]} { set class p_base } if {[dict exists $::pkgmeta $name]} { set class p_base }
# Always show beta packages # Always show beta packages
@ -24,7 +24,7 @@ proc pkgrow {name pkg} {
puts "<img class=\"va norepo\" src=/img/pkgmissing.png>" puts "<img class=\"va norepo\" src=/img/pkgmissing.png>"
} elseif {$pkg(repo) ne "base"} { } elseif {$pkg(repo) ne "base"} {
puts "<img class=\"va beta\" src=/img/pkgbeta.png>" puts "<img class=\"va beta\" src=/img/pkgbeta.png>"
} elseif {$class eq "p_adv"} { } elseif {$class eq "p_av"} {
puts "<img class=\"va adv\" src=/img/pkgadvanced.png>" puts "<img class=\"va adv\" src=/img/pkgadvanced.png>"
} }

View File

@ -152,18 +152,18 @@ function update_filter($table, change)
if (pkgfilter) if (pkgfilter)
{ {
$table.find('tr.p_adv').hide(); $table.find('tr.p_av').hide();
$('#filtertext').text('Not showing advanced packages'); $('#filtertext').text('Not showing advanced packages');
$('#b_filter').text('Show'); $('#b_filter').text('Show');
} }
else else
{ {
$table.find('tr.p_adv').show(); $table.find('tr.p_av').show();
$('#filtertext').text('Advanced packages are being shown'); $('#filtertext').text('Advanced packages are being shown');
$('#b_filter').text('Hide'); $('#b_filter').text('Hide');
} }
$table.trigger('update', [true]); $table.trigger('update');
$('#b_filter').button().off('click').on('click', function() { $('#b_filter').button().off('click').on('click', function() {
update_filter($table, 1); update_filter($table, 1);

View File

@ -23,10 +23,8 @@ button.upgrade
padding-right: 2em; padding-right: 2em;
} }
tr.p_adv td tr.p_av td
{ {
/*background: #b9daff !important;*/
/*color: black;*/
font-style: italic; font-style: italic;
color: blue; color: blue;
} }