Added Trusted Sources Count, added meta to links

Plugged in noted counts that detail how many times an instance as been
suspended or silenced by members of the Trusted Sources.

https://writer.oliphant.social/oliphant/trusted-source-membership

Also added some additional meta data to links displaying instances lists
so status and counts can be identified at a glance
This commit is contained in:
Ro 2023-08-28 18:01:43 -07:00
parent c087d00a2b
commit 65229edbab
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50
8 changed files with 44 additions and 8 deletions

View file

@ -34,3 +34,10 @@ section[role="listings"] div[role="paginate"] span {
font-weight: bold;
font-size: 1.5em;
}
a.list-link {
display: grid;
grid-template-columns: 40px 450px 230px;
width: 80%;
height: 45px;
}

View file

@ -7,5 +7,7 @@
--grey: #abb7b7;
--black: #32302f;
--error: #b62520;
--silence: #ea6010;
--suspend: #fb263a;
--primary-rgb: 20 13 13;
}

View file

@ -7,7 +7,7 @@ html {
html body {
background: var(--primary);
color: var(--secondary);
color: var(--white);
margin: 0;
padding: 0;
height: 100%;
@ -26,6 +26,10 @@ a {
*/
}
strong {
color: var(--secondary);
}
header {
width: 100%;
color: var(--primary);

View file

@ -58,7 +58,7 @@ h2 {
font-size: 1.5em;
font-weight: 500;
line-height: 0.8em;
color: var(--white);
color: var(--secondary);
margin: 30px 0;
}

View file

@ -33,6 +33,9 @@
<label for="element-toggle">
<img class="menu-icon" src="/assets/images/global/close.svg" title="menu-open-toggle" />
</label><br>
<a href="/" title="front" class="nav-links">
Front
</a><br />
<a href="/about" title="about" class="nav-links">
About
</a><br />

View file

@ -25,11 +25,20 @@
@endisset
<section class="index-meta">
<article>
<strong>{{$count}}</strong>
sites tracked<br /><br />
<strong>Recent Updates</strong><br />
@foreach($recent as $item)
{{$item->name}}<br />
<h2>Bad Space Stats</h2>
<strong>{{$count}}</strong><br />
Instances being tracked.
<h2>Recent Updates</h2>
@foreach($recent as $location)
<a class="list-link" role="listitem" href="/location/{{$location->uuid}}">
@if($location->status == 'silence')
<img class="menu-icon" src="/assets/images/global/status-silence.svg" title="status-silence" />
@else
<img class="menu-icon" src="/assets/images/global/status-suspend.svg" title="status-suspend" />
@endif
<label>{{$location->name}}</label>
<span>NOTED COUNT: {{$location->block_count}}</span>
</a>
@endforeach
</article>
</section>

View file

@ -9,7 +9,15 @@
{{$pageNum}} of {{$totalPages}}
<a href="/listings/{{$next}}">NEXT</a><br />
@foreach($locations as $location)
<a role="listitem" href="/location/{{$location->uuid}}">{{$location->name}} | BLOCK COUNT: {{$location->block_count}}</a><br />
<a class="list-link" role="listitem" href="/location/{{$location->uuid}}">
@if($location->rating == 'silence')
<img class="menu-icon" src="/assets/images/global/status-silence.svg" title="status-silence" />
@else
<img class="menu-icon" src="/assets/images/global/status-suspend.svg" title="status-suspend" />
@endif
<label>{{$location->name}}</label>
<span>NOTED COUNT: {{$location->block_count}}</span>
</a>
@endforeach
<a href="/listings/{{$prev}}">PREV</a>
{{$pageNum}} of {{$totalPages}}

View file

@ -16,6 +16,9 @@
</a>
@endforeach
@endif
<br />
<strong>Noted Count: {{$location->block_count}}</strong><br />
Noted Count reflects the number of times this instance has been suspended or silenced by a member of <a href="https://writer.oliphant.social/oliphant/trusted-source-membership">Trusted Sources</a>
<br />UPDATED : {{$updated}}
</article>