- added new wormhole statics for "Thera", closed #240

This commit is contained in:
Exodus4D
2016-07-15 21:42:36 +02:00
parent b867e8423c
commit 79cbeedb91
3 changed files with 579 additions and 551 deletions

View File

@@ -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

View File

@@ -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:&nbsp;&nbsp;<kbd>{{ @indexData.task }}</kbd></span>
</false>
</check>
</div>
</repeat>
</div>
</div>
</div>