- added new wormhole statics for "Thera", closed #240
This commit is contained in:
@@ -770,7 +770,19 @@ class Setup extends Controller {
|
||||
protected function getIndexData(){
|
||||
$indexInfo = [
|
||||
'route' => [
|
||||
'label' => 'Route',
|
||||
'action' => 'buildRouteIndex',
|
||||
'count' => DB\Database::instance()->getRowCount('system_neighbour')
|
||||
],
|
||||
'wormhole' => [
|
||||
'label' => 'Wormhole',
|
||||
'task' => '/export/sql/pathfinder.sql',
|
||||
'count' => DB\Database::instance()->getRowCount('wormhole')
|
||||
],
|
||||
'SystemWormhole' => [
|
||||
'label' => 'System wormhole',
|
||||
'task' => '/export/sql/pathfinder.sql',
|
||||
'count' => DB\Database::instance()->getRowCount('system_wormhole')
|
||||
]
|
||||
];
|
||||
return $indexInfo;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -770,24 +770,34 @@
|
||||
</div>
|
||||
|
||||
<div class="panel-body no-padding">
|
||||
<div class="btn-group btn-group-justified">
|
||||
<span class="btn btn-default disabled btn-fake">
|
||||
Route index
|
||||
<span class="pull-right">
|
||||
<check if="{{ @indexInformation.route.count }}">
|
||||
<true>
|
||||
<kbd class="txt-color txt-color-success">{{ @indexInformation.route.count }} rows</kbd>
|
||||
</true>
|
||||
<false>
|
||||
<kbd class="txt-color txt-color-danger">0 rows</kbd>
|
||||
</false>
|
||||
</check>
|
||||
|
||||
<repeat group="{{ @indexInformation }}" value="{{ @indexData }}">
|
||||
<div class="btn-group btn-group-justified">
|
||||
<span class="btn btn-default disabled btn-fake">
|
||||
{{ @indexData.label }}
|
||||
<span class="pull-right">
|
||||
<check if="{{ @indexData.count }}">
|
||||
<true>
|
||||
<kbd class="txt-color txt-color-success">{{ @indexData.count }} rows</kbd>
|
||||
</true>
|
||||
<false>
|
||||
<kbd class="txt-color txt-color-danger">0 rows</kbd>
|
||||
</false>
|
||||
</check>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<a href="?buildRouteIndex=1#pf-setup-administration" class="btn btn-primary {{ @dbWarnings ?'disabled':'' }}" role="button">
|
||||
<i class="fa fa-fw fa-refresh"></i> Build index
|
||||
</a>
|
||||
</div>
|
||||
<check if="{{ @indexData.action }}">
|
||||
<true>
|
||||
<a href="?{{ @indexData.action }}=1#pf-setup-administration" class="btn btn-primary {{ @dbWarnings ?'disabled':'' }}" role="button">
|
||||
<i class="fa fa-fw fa-refresh"></i> Build index
|
||||
</a>
|
||||
</true>
|
||||
<false>
|
||||
<span class="btn btn-default disabled btn-fake">Import: <kbd>{{ @indexData.task }}</kbd></span>
|
||||
</false>
|
||||
</check>
|
||||
</div>
|
||||
</repeat>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user