mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 18:58:17 +00:00
Style disabled and deleted filters in light gray, for visual identification.
This commit is contained in:
parent
e2754e1af3
commit
909be785f6
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue