Added server info
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="h-100 bg-animation">
|
||||
<div class="d-flex h-100 justify-content-center align-items-center">
|
||||
<div class="mx-auto app-login-box col-md-8">
|
||||
@if(asset('login-note.txt'))
|
||||
@if(file_exists('login-note.txt'))
|
||||
<div class="mx-auto card text-white card-body bg-primary w-50">
|
||||
<h5 class="text-white card-title"><i class="icon fa-2x fas fa-info pr-3"></i><span class="font-size-xlg">NOTE</span></h5>
|
||||
<span class="w-100 pb-0">
|
||||
|
@@ -33,6 +33,12 @@
|
||||
<div class="app-sidebar__inner">
|
||||
<ul class="vertical-nav-menu">
|
||||
<li class="app-sidebar__heading">{{ $server ?? 'Server Name' }}</li>
|
||||
<li>
|
||||
<div class="font-icon-wrapper float-left mr-1">
|
||||
<a class="p-0 m-0 server-icon" href="{{ url('info') }}" style="display: contents;"><i class="fas fa-fw fa-info pr-1 pl-1"></i></a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</li>
|
||||
<li>
|
||||
<i id="treeicon" class="metismenu-icon fa-fw fas fa-sitemap"></i>
|
||||
<span id="tree"></span>
|
||||
@@ -41,3 +47,39 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('page-scripts')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.server-icon').click(function(e) {
|
||||
var content;
|
||||
|
||||
$.ajax({
|
||||
url: $(this).attr('href'),
|
||||
method: 'GET',
|
||||
dataType: 'html',
|
||||
statusCode: {
|
||||
404: function() {
|
||||
$('.main-content').empty().append(content);
|
||||
}
|
||||
},
|
||||
beforeSend: function() {
|
||||
content = $('.main-content').contents();
|
||||
$('.main-content').empty().append('<div class="fa-3x"><i class="fas fa-spinner fa-pulse"></i></div>');
|
||||
}
|
||||
|
||||
}).done(function(html) {
|
||||
$('.main-content').empty().append(html);
|
||||
|
||||
}).fail(function() {
|
||||
//alert('Failed');
|
||||
});
|
||||
|
||||
e.stopPropagation();
|
||||
|
||||
console.log($(this).attr('href'));
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@append
|
||||
|
@@ -8,22 +8,21 @@
|
||||
{{ $dn }}
|
||||
@endsection
|
||||
@section('page_subtitle')
|
||||
{{ $leaf->entryuuid[0] }}
|
||||
{{ $leaf->entryuuid[0] ?? '' }}
|
||||
@endsection
|
||||
@section('page_icon')
|
||||
fas fa-cog
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td colspan="2">@dump($leaf->getOriginal(),$leaf->countAttributes())</td>
|
||||
</tr>
|
||||
@foreach ($leaf->getAttributes() as $attribute => $value)
|
||||
<tr>
|
||||
<th>{{ $attribute }}</th>
|
||||
<td>{!! is_array($value) ? join('<br>',$value) : $value !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<div class="bg-white p-3">
|
||||
<table class="table">
|
||||
@foreach ($attributes as $attribute => $value)
|
||||
<tr>
|
||||
<th>{{ $attribute }}</th>
|
||||
<td>{!! is_array($value) ? join('<br>',$value) : $value !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user