Add missing PR files
This commit is contained in:
parent
3dcd718df8
commit
2a718efd76
|
|
@ -52,6 +52,7 @@ class Updates extends Controller
|
|||
$this->vars['projectId'] = Parameters::get('system::project.id');
|
||||
$this->vars['projectName'] = Parameters::get('system::project.name');
|
||||
$this->vars['projectOwner'] = Parameters::get('system::project.owner');
|
||||
$this->vars['pluginsActiveCount'] = PluginVersion::isEnabled()->count();
|
||||
$this->vars['pluginsCount'] = PluginVersion::count();
|
||||
return $this->asExtension('ListController')->index();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,11 @@
|
|||
<?php endif ?>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.updates.plugins')) ?></h4>
|
||||
<p><?= $pluginsCount ?></p>
|
||||
<?php if ( $pluginsCount == $pluginsActiveCount ): ?>
|
||||
<p><?= $pluginsCount ?></p>
|
||||
<?php else: ?>
|
||||
<p><?= $pluginsActiveCount, ' (', $pluginsCount, ')' ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class PluginVersion extends Model
|
|||
* @param $query
|
||||
* @return mixed
|
||||
*/
|
||||
public function scopeEnabled($query)
|
||||
public function scopeIsEnabled($query)
|
||||
{
|
||||
return $query->where('is_disabled', '!=', 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue