Clean up code

This commit is contained in:
Samuel Georges 2015-01-10 10:41:02 +11:00
parent c2b6b4be5f
commit dd6233e81d
2 changed files with 5 additions and 4 deletions

View File

@ -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['pluginsCount'] = PluginVersion::count();
return $this->asExtension('ListController')->index();
}

View File

@ -30,10 +30,10 @@
<p><?= $coreBuild ?></p>
</div>
<?php endif ?>
<div class="scoreboard-item title-value">
<h4><?= e(trans('system::lang.updates.plugins')) ?></h4>
<p><?= DB::table('system_plugin_versions')->count() ?></p>
</div>
<div class="scoreboard-item title-value">
<h4><?= e(trans('system::lang.updates.plugins')) ?></h4>
<p><?= $pluginsCount ?></p>
</div>
</div>
</div>