2017-01-24 22:57:08 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
2017-01-15 19:09:57 +00:00
|
|
|
|
|
|
|
{{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
|
|
|
|
{{-- of this software and associated documentation files (the "Software"), to deal --}}
|
|
|
|
{{-- in the Software without restriction, including without limitation the rights --}}
|
|
|
|
{{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
|
|
|
|
{{-- copies of the Software, and to permit persons to whom the Software is --}}
|
|
|
|
{{-- furnished to do so, subject to the following conditions: --}}
|
|
|
|
|
|
|
|
{{-- The above copyright notice and this permission notice shall be included in all --}}
|
|
|
|
{{-- copies or substantial portions of the Software. --}}
|
|
|
|
|
|
|
|
{{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
|
|
|
|
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
|
|
|
|
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
|
|
|
|
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
|
|
|
|
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
|
|
|
|
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
|
|
|
|
{{-- SOFTWARE. --}}
|
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
2017-01-18 01:01:26 +00:00
|
|
|
@lang('base.index.header')
|
2017-01-15 19:09:57 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
2017-01-18 01:01:26 +00:00
|
|
|
<h1>@lang('base.index.header')<small>@lang('base.index.header_sub')</small></h1>
|
2017-01-15 19:09:57 +00:00
|
|
|
<ol class="breadcrumb">
|
2017-01-18 01:01:26 +00:00
|
|
|
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
|
|
|
<li class="active">@lang('strings.servers')</li>
|
2017-01-15 19:09:57 +00:00
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
2017-01-18 01:01:26 +00:00
|
|
|
<h3 class="box-title">@lang('base.index.list')</h3>
|
2017-01-15 19:09:57 +00:00
|
|
|
<div class="box-tools">
|
2017-04-01 17:14:49 +00:00
|
|
|
<form action="{{ route('index') }}" method="GET">
|
|
|
|
<div class="input-group input-group-sm" style="width: 250px;">
|
|
|
|
<input type="text" name="query" class="form-control pull-right" value="{{ request()->input('query') }}" placeholder="@lang('strings.search')">
|
|
|
|
<div class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
|
|
|
|
</div>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
2017-04-01 17:14:49 +00:00
|
|
|
</form>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2017-01-18 01:01:26 +00:00
|
|
|
<th>@lang('strings.id')</th>
|
|
|
|
<th>@lang('strings.name')</th>
|
|
|
|
<th>@lang('strings.node')</th>
|
|
|
|
<th>@lang('strings.connection')</th>
|
|
|
|
<th class="text-center hidden-sm hidden-xs">@lang('strings.memory')</th>
|
|
|
|
<th class="text-center hidden-sm hidden-xs">@lang('strings.cpu')</th>
|
2017-03-17 19:34:29 +00:00
|
|
|
<th class="text-center">@lang('strings.relation')</th>
|
2017-01-18 01:01:26 +00:00
|
|
|
<th class="text-center">@lang('strings.status')</th>
|
2017-01-15 19:09:57 +00:00
|
|
|
</tr>
|
|
|
|
@foreach($servers as $server)
|
2017-04-01 03:07:19 +00:00
|
|
|
<tr class="dynamic-update" data-server="{{ $server->uuidShort }}">
|
|
|
|
<td @if(! empty($server->description)) rowspan="2" @endif><code>{{ $server->uuidShort }}</code></td>
|
|
|
|
<td><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></td>
|
|
|
|
<td>{{ $server->node->name }}</td>
|
|
|
|
<td><code>{{ $server->allocation->alias }}:{{ $server->allocation->port }}</code></td>
|
|
|
|
<td class="text-center hidden-sm hidden-xs"><span data-action="memory">--</span> / {{ $server->memory === 0 ? '∞' : $server->memory }} MB</td>
|
|
|
|
<td class="text-center hidden-sm hidden-xs"><span data-action="cpu" data-cpumax="{{ $server->cpu }}">--</span> %</td>
|
|
|
|
<td class="text-center">
|
|
|
|
@if($server->user->id === Auth::user()->id)
|
|
|
|
<span class="label bg-purple">@lang('strings.owner')</span>
|
|
|
|
@elseif(Auth::user()->isRootAdmin())
|
|
|
|
<span class="label bg-maroon">@lang('strings.admin')</span>
|
|
|
|
@else
|
|
|
|
<span class="label bg-blue">@lang('strings.subuser')</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td class="text-center" data-action="status">
|
|
|
|
@if($server->suspended === 1)
|
|
|
|
<span class="label label-warning">@lang('strings.suspended')</span>
|
|
|
|
@else
|
|
|
|
<span class="label label-default"><i class="fa fa-refresh fa-fw fa-spin"></i></span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@if (! empty($server->description))
|
|
|
|
<tr class="server-description">
|
|
|
|
<td colspan="7"><p class="text-muted small no-margin">{{ str_limit($server->description, 400) }}</p></td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-03-16 23:54:31 +00:00
|
|
|
@if($servers->hasPages())
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="col-md-12 text-center">{!! $servers->render() !!}</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
2017-04-01 03:07:19 +00:00
|
|
|
<script>
|
|
|
|
$('tr.server-description').on('mouseenter mouseleave', function (event) {
|
|
|
|
$(this).prev('tr').css({
|
|
|
|
'background-color': (event.type === 'mouseenter') ? '#f5f5f5' : '',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-15 19:09:57 +00:00
|
|
|
{!! Theme::js('js/frontend/serverlist.js') !!}
|
|
|
|
@endsection
|