CSS changes, enable links to system edit on network list
This commit is contained in:
parent
d937547599
commit
49bc946024
@ -253,15 +253,6 @@ class Address extends Model
|
|||||||
*/
|
*/
|
||||||
public function session(string $type): ?string
|
public function session(string $type): ?string
|
||||||
{
|
{
|
||||||
static $session = NULL;
|
return ($x=$this->system->sessions->where('id',$this->zone_id)->first()) ? $x->pivot->{$type} : NULL;
|
||||||
|
|
||||||
if (is_null($session)) {
|
|
||||||
$session = (new SystemZone)
|
|
||||||
->where('zone_id',$this->zone_id)
|
|
||||||
->where('system_id',$this->system_id)
|
|
||||||
->single();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $session ? $session->{$type} : NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
58
public/oldschool/css/main.css
vendored
58
public/oldschool/css/main.css
vendored
@ -98,11 +98,20 @@ sup:before {
|
|||||||
}
|
}
|
||||||
sup:after {
|
sup:after {
|
||||||
content: ']';
|
content: ']';
|
||||||
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
sup:before,
|
sup:before,
|
||||||
sup:after {
|
sup:after {
|
||||||
color: #aa0000;
|
color: #aa0000;
|
||||||
}
|
}
|
||||||
|
sup.success {
|
||||||
|
color: #005300;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup.success:before,
|
||||||
|
sup.success:after {
|
||||||
|
color: #00aa00;
|
||||||
|
}
|
||||||
|
|
||||||
#nav {
|
#nav {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -115,8 +124,6 @@ sup:after {
|
|||||||
#nav-menu {
|
#nav-menu {
|
||||||
color:#aaa;
|
color:#aaa;
|
||||||
padding:0;
|
padding:0;
|
||||||
width:inherit;
|
|
||||||
max-width:1248px;
|
|
||||||
position:fixed;
|
position:fixed;
|
||||||
z-index:4;
|
z-index:4;
|
||||||
top:0;
|
top:0;
|
||||||
@ -124,20 +131,18 @@ sup:after {
|
|||||||
right:0;
|
right:0;
|
||||||
margin-top:0;
|
margin-top:0;
|
||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
margin-left:auto;
|
margin-left:5%;
|
||||||
margin-right:auto;
|
margin-right:5%;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
#nav-menu h1 {
|
#nav-menu h1 {
|
||||||
width: 216px;
|
width: 15%;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight:400;
|
font-weight:400;
|
||||||
padding: 12px 0 0 0;
|
padding: 12px 0 0 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-transform:uppercase;
|
text-transform:uppercase;
|
||||||
margin-right: 10px;
|
|
||||||
margin-left: -50px;
|
|
||||||
}
|
}
|
||||||
#nav-menu ul {
|
#nav-menu ul {
|
||||||
margin:0;
|
margin:0;
|
||||||
@ -259,9 +264,10 @@ ul#searchbar li i {
|
|||||||
left:0;
|
left:0;
|
||||||
top:calc(3em + 5px);
|
top:calc(3em + 5px);
|
||||||
height:calc(100vh - 3em + 5px);
|
height:calc(100vh - 3em + 5px);
|
||||||
width:22ch;
|
width:15%;
|
||||||
|
/*margin-right: 10px;*/
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
padding-top:1.5em;
|
padding-top:1em;
|
||||||
color:#c60;
|
color:#c60;
|
||||||
background-color:#000;
|
background-color:#000;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
@ -287,9 +293,9 @@ ul#searchbar li i {
|
|||||||
|
|
||||||
#content {
|
#content {
|
||||||
color:#aaa;
|
color:#aaa;
|
||||||
max-width:993px;
|
max-width:95%;
|
||||||
margin:0 auto;
|
padding-top: 3.5em;
|
||||||
padding:4em 0 0;
|
padding-left: 7px;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
overflow:hidden
|
overflow:hidden
|
||||||
}
|
}
|
||||||
@ -302,12 +308,8 @@ ul#searchbar li i {
|
|||||||
|
|
||||||
.with-sidebar {
|
.with-sidebar {
|
||||||
position:relative;
|
position:relative;
|
||||||
left:88px;
|
margin-left: 18.5% !important;
|
||||||
max-width:1041px!important
|
max-width:75% !important;
|
||||||
}
|
|
||||||
.with-sidebar.x {
|
|
||||||
left:112px;
|
|
||||||
max-width:1017px!important
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MAIN CONTENT HEADERS */
|
/* MAIN CONTENT HEADERS */
|
||||||
@ -588,7 +590,6 @@ tbody {
|
|||||||
border-bottom:1px solid #555
|
border-bottom:1px solid #555
|
||||||
}
|
}
|
||||||
.monotable {
|
.monotable {
|
||||||
background-color:#1e1e1e;
|
|
||||||
margin-top:.5em;
|
margin-top:.5em;
|
||||||
margin-bottom:1.5em;
|
margin-bottom:1.5em;
|
||||||
text-indent:0
|
text-indent:0
|
||||||
@ -617,10 +618,11 @@ tbody {
|
|||||||
border-right:2px solid #666
|
border-right:2px solid #666
|
||||||
}
|
}
|
||||||
.monotable tbody {
|
.monotable tbody {
|
||||||
|
background-color:#1e1e1e;
|
||||||
border-top:3px double #666;
|
border-top:3px double #666;
|
||||||
border-left:2px solid #666;
|
border-left:2px solid #666;
|
||||||
border-right:2px solid #666;
|
border-right:2px solid #666;
|
||||||
border-bottom:1px solid #666;
|
border-bottom:2px solid #666;
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
.monotable tbody tr.admin {
|
.monotable tbody tr.admin {
|
||||||
@ -637,16 +639,18 @@ tbody {
|
|||||||
.monotable tbody tr:last-child td {
|
.monotable tbody tr:last-child td {
|
||||||
padding-bottom:7px!important
|
padding-bottom:7px!important
|
||||||
}
|
}
|
||||||
.monotable tr td:not(:last-child) {
|
.monotable tbody tr td:not(:last-child) {
|
||||||
border-right:2px solid #666
|
border-right:2px solid #666
|
||||||
}
|
}
|
||||||
.monotable.cozy {
|
|
||||||
text-align:left
|
.monotable tfoot {
|
||||||
|
background-color:#000;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
.monotable.cozy td {
|
.monotable tfoot tr td {
|
||||||
padding-top:8px!important;
|
border-bottom: 0;
|
||||||
padding-bottom:7px!important;
|
color: #eee;
|
||||||
border-bottom:1px solid #666
|
font-size: 85%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titledbox {
|
.titledbox {
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<td>{{ $oz->system->last_session ? $oz->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
<td>{{ $oz->system->last_session ? $oz->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach ($oz->addresses()->active()->FTNorder()->where('point_id',0)->whereNull('hub_id')->with(['system','zone.domain'])->get() as $ao)
|
@foreach ($oz->addresses()->active()->FTNorder()->where('point_id',0)->whereNull('hub_id')->with(['system.sessions','system.setup','zone.domain'])->get() as $ao)
|
||||||
@if ($ao->role == 'Host')
|
@if ($ao->role == 'Host')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ sprintf('NC-%s-%05d',$oz->domain->name,$ao->host_id) }} @auth<span class="float-end"><small>[{{ $ao->system_id }}]</small></span>@endauth</td>
|
<td>{{ sprintf('NC-%s-%05d',$oz->domain->name,$ao->host_id) }} @auth<span class="float-end"><small>[{{ $ao->system_id }}]</small></span>@endauth</td>
|
||||||
@ -89,7 +89,7 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $ao->system->full_name($ao) }} @auth<span class="float-end"><small>[{{ $ao->system_id }}]</small></span>@endauth</td>
|
<td><a href="{{ url('ftn/system/addedit',[$ao->system_id]) }}">{{ $ao->system->full_name($ao) }}</a> @auth<span class="float-end"><small>@if($ao->session('sespass'))<sup>*</sup>@elseif($ao->system->setup)<sup class="success">+</sup>@endif[{{ $ao->system_id }}]</small></span>@endauth</td>
|
||||||
<td>{{ $ao->system->sysop }}</td>
|
<td>{{ $ao->system->sysop }}</td>
|
||||||
<td>{{ $ao->system->location }}</td>
|
<td>{{ $ao->system->location }}</td>
|
||||||
<td>{{ $ao->ftn_3d }}</td>
|
<td>{{ $ao->ftn_3d }}</td>
|
||||||
@ -98,9 +98,9 @@
|
|||||||
|
|
||||||
<!-- If this node is a hub -->
|
<!-- If this node is a hub -->
|
||||||
@if ($ao->role == 'Hub')
|
@if ($ao->role == 'Hub')
|
||||||
@foreach ($oz->addresses()->active()->FTNorder()->where('point_id',0)->where('hub_id',$ao->id)->with(['system','zone.domain'])->get() as $aoo)
|
@foreach ($oz->addresses()->active()->FTNorder()->where('point_id',0)->where('hub_id',$ao->id)->with(['system.sessions','zone.domain'])->get() as $aoo)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $aoo->system->full_name($aoo) }} @auth<span class="float-end"><small>[{{ $aoo->system_id }}]</small></span>@endauth</td>
|
<td><a href="{{ url('ftn/system/addedit',[$ao->system_id]) }}">{{ $aoo->system->full_name($aoo) }}</a> @auth<span class="float-end"><small>[{{ $aoo->system_id }}]</small></span>@endauth</td>
|
||||||
<td>{{ $aoo->system->sysop }}</td>
|
<td>{{ $aoo->system->sysop }}</td>
|
||||||
<td>{{ $aoo->system->location }}</td>
|
<td>{{ $aoo->system->location }}</td>
|
||||||
<td>{{ $aoo->ftn_3d }}</td>
|
<td>{{ $aoo->ftn_3d }}</td>
|
||||||
@ -111,6 +111,13 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@auth
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="5"><sup>*</sup>System defined here <sup class="success">+</sup>This system</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
@endauth
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@if ($o->exists)
|
@if ($o->exists)
|
||||||
<h1>{{ $o->name }}@if($o->setup) <sup style="text-shadow: 0 0; font-size: 50%; top: -1em;">*</sup>@endif</h1>
|
<h1>{{ $o->name }}@if($o->setup)<sup class="success" style="text-shadow: 0 0; font-size: 50%; top: -1em;">*</sup>@endif</h1>
|
||||||
@if($o->setup)<sup style="float:right;top:-2em;">* This Host</sup>@endif
|
@if($o->setup)<sup class="success" style="float:right;top:-2em;">* This Host</sup>@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="accordion accordion-flush" id="accordion_homepage">
|
<div class="accordion accordion-flush" id="accordion_homepage">
|
||||||
|
Loading…
Reference in New Issue
Block a user