Skip to content

Commit

Permalink
Also show total rules for Maintainerr
Browse files Browse the repository at this point in the history
  • Loading branch information
albinmedoc committed Jun 2, 2024
1 parent e12ba48 commit 536ad67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Maintainerr/Maintainerr.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function livestats()
return isset($rule->isActive) && $rule->isActive;
});

$data["rules"] = count($activeRules);
$data["rules"] = count($rules);
$data["activeRules"] = count($activeRules);

return parent::getLiveStats($status, $data);
}
Expand Down
2 changes: 1 addition & 1 deletion Maintainerr/livestats.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul class="livestats">
<li>
<span class="title">Rules</span>
<strong>{!! $rules !!}</strong>
<strong>{!! $activeRules !!}<span>/{!! $rules !!}</span></strong>
</li>
</ul>

0 comments on commit 536ad67

Please sign in to comment.