mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Den reorganizing, edit location link, form styles
The admin area needed to be reorganized as it was a bit all over the place to accomodate new features. And edit link was added to location detail pages so authorized members can edit when necessary. Form elements were loosened up a bit to give them a bit more breathing room
This commit is contained in:
37
resources/views/back/listings.php
Normal file
37
resources/views/back/listings.php
Normal file
@ -0,0 +1,37 @@
|
||||
@extends('frame')
|
||||
|
||||
@section('title', 'Den | Location Admin')
|
||||
|
||||
@section('main-content')
|
||||
@parent
|
||||
<section>
|
||||
<article>
|
||||
<h2>Page {{$pageNum}}</h2>
|
||||
<a href="/listings/{{$prev}}">PREV</a>
|
||||
{{$pageNum}} of {{$totalPages}}
|
||||
<a href="/listings/{{$next}}">NEXT</a><br /><br />
|
||||
@foreach($locations as $location)
|
||||
@php
|
||||
$action = $location->block_count + $location->silence_count;
|
||||
$rating = ($action / $sources)*100;
|
||||
@endphp
|
||||
<a class="list-link" role="listitem" href="/den/location/edit/{{$location->uuid}}">
|
||||
<span class="item-rating">{{$rating}}%</span>
|
||||
<label class="item-name">{{$location->name}}</label>
|
||||
<div class="item-silence">
|
||||
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
||||
{{$location->silence_count}}
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
||||
{{$location->block_count}}
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
<br />
|
||||
<a href="/listings/{{$prev}}">PREV</a>
|
||||
{{$pageNum}} of {{$totalPages}}
|
||||
<a href="/listings/{{$next}}">NEXT</a>
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
@ -6,32 +6,11 @@
|
||||
@parent
|
||||
<section>
|
||||
<article>
|
||||
<h2>Page {{$pageNum}}</h2>
|
||||
<a href="/listings/{{$prev}}">PREV</a>
|
||||
{{$pageNum}} of {{$totalPages}}
|
||||
<a href="/listings/{{$next}}">NEXT</a><br /><br />
|
||||
@foreach($locations as $location)
|
||||
@php
|
||||
$action = $location->block_count + $location->silence_count;
|
||||
$rating = ($action / $sources)*100;
|
||||
@endphp
|
||||
<a class="list-link" role="listitem" href="/den/location/edit/{{$location->uuid}}">
|
||||
<span class="item-rating">{{$rating}}%</span>
|
||||
<label class="item-name">{{$location->name}}</label>
|
||||
<div class="item-silence">
|
||||
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
||||
{{$location->silence_count}}
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
||||
{{$location->block_count}}
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
<br />
|
||||
<a href="/listings/{{$prev}}">PREV</a>
|
||||
{{$pageNum}} of {{$totalPages}}
|
||||
<a href="/listings/{{$next}}">NEXT</a>
|
||||
<h2>Manage Locations</h2>
|
||||
<h3>Update Location Data</h3>
|
||||
<a href="/den/admin/update">Update Current Sources Data</a><br />
|
||||
<a href="/den/admin/compile">Update Locations Data</a>
|
||||
<h3>View Location Listings</h3>
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
@ -1,14 +1,17 @@
|
||||
@extends('frame')
|
||||
|
||||
@section('title', 'Den|Start')
|
||||
@section('title', 'Den | Start')
|
||||
|
||||
@section('main-content')
|
||||
|
||||
<section>
|
||||
<article>
|
||||
<h2>Hey {{$handle}} </h2>
|
||||
<a href="/den/member">Manage Member</a><br />
|
||||
<a href="/den/locations/1">Manage Location</a>
|
||||
<a href="/den/you">Edit Your Account</a><br />
|
||||
<a href="/den/locations">Manage Locations</a><br />
|
||||
@if($role==1)
|
||||
<a href="/den/member">Manage Members</a><br />
|
||||
@endif
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
@ -37,6 +37,13 @@
|
||||
</div>
|
||||
|
||||
|
||||
@if($edit)
|
||||
<hr />
|
||||
<a href="/den/location/edit/{{$location->uuid}}">Edit {{$location->name}}</a>
|
||||
<hr />
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
Heat Rating is the percentage of <a href="/about#how">Current Sources</a> that have taken action against an instance. The higher the number of Sources that have silenced and/or suspended an instance, the higher the Heat Rating.
|
||||
|
Reference in New Issue
Block a user