Skip to content

Commit c827d36

Browse files
rootroot
authored andcommitted
Updated config and livestats
1 parent 05a351c commit c827d36

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CraftyController/config.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div class="items">
33
<div class="input">
44
<label>{{ strtoupper(__('app.url')) }}</label>
5-
{!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
5+
{!! Form::text('config[override_url]', isset($item) ? $item->getconfig()->override_url : null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
66
</div>
77
<div class="input">
88
<label>{{ __('app.apps.username') }}</label>
9-
{!! Form::text('config[username]', null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!}
9+
{!! Form::text('config[username]', isset($item) ? $item->getconfig()->username : null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!}
1010
</div>
1111
<div class="input">
1212
<label>{{ __('app.apps.password') }}</label>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<ul class="livestats">
22
<li>
3-
<span class="title">servers: {!! $servers_total !!}</span>
4-
<span class="title">players: {!! $players_online !!}</span>
3+
<span class="title">servers:</span><strong>{!! $servers_total !!}</strong>
4+
<span class="title">players:</span><strong>{!! $players_online !!}</strong>
55
</li>
66
<li>
7-
<span class="title">online: {!! $servers_online !!}</span>
8-
<span class="title">{!! $mem !!} GB</span>
7+
<span class="title">online:</span><strong>{!! $servers_online !!}</strong>
8+
<span class="title">memory:</span><strong>{!! $mem !!} GB</strong>
99
</li>
1010
</ul>

0 commit comments

Comments
 (0)