Style disabled and deleted filters in light gray, for visual identification.

This commit is contained in:
Andrew Garrett 2009-01-28 20:09:05 +00:00
parent e2754e1af3
commit 909be785f6
2 changed files with 18 additions and 0 deletions

View file

@ -201,6 +201,16 @@ class AbuseFilterPager extends TablePager {
return 'af_id';
}
function getRowClass( $row ) {
if ($row->status & 1) {
return 'mw-abusefilter-list-enabled';
} elseif ($row->status & 2) {
return 'mw-abusefilter-list-deleted';
} else {
return 'mw-abusefilter-list-disabled';
}
}
function isFieldSortable($name) {
$sortable_fields = array( 'af_id', 'status', 'af_hit_count', 'af_throttled', 'af_user_text', 'af_timestamp' );
return in_array( $name, $sortable_fields );

View file

@ -38,4 +38,12 @@ div.mw-abuselog-var-value {
td.mw-abuselog-var {
width: 30%;
}
tr.mw-abusefilter-list-disabled, tr.mw-abusefilter-list-disabled td {
color: #666666;
}
tr.mw-abusefilter-list-deleted, tr.mw-abusefilter-list-deleted td {
color: #aaaaaa;
}