mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Link Updates, Recent Links on Index clean up
Started the front end refresh by starting to plug in the new design on the index page. The search methodology was still not consistent, so that process was cleaned up to display what is actually being tracked based on the two action criteria, then updating the design for the location links to be clear and display the heat rating. Added a repo link to the About section.
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
</p>
|
||||
<p>
|
||||
Technical support provided by
|
||||
<a href="https://roiskinda.cool/profile.html">Ro</a>.
|
||||
<a href="https://roiskinda.cool/profile.html">Ro</a>. The repo can be found <a href="https://koodu.h-i.works/projects/thebadspace">here</a>.
|
||||
</p>
|
||||
<h2 id="how">How does it work?</h2>
|
||||
<p>The Bad Space is a collaboration of instances committed to actively moderating against racism, sexism, heterosexism, transphobia, ableism, casteism, or religion.</p>
|
||||
|
@ -17,27 +17,38 @@
|
||||
<strong>
|
||||
Found {{count($results)}} results:
|
||||
</strong><br>
|
||||
@foreach($results as $location)
|
||||
<a role="listitem" href="/location/{{$location->uuid}}">{{$location->name}}</a></a><br />
|
||||
@endforeach
|
||||
@for($i = 0; $i < 10; $i++)
|
||||
<a role="listitem" href="/location/{{$recent[$i]->uuid}}">{{$recent[$i]->name}}</a></a><br />
|
||||
@endfor
|
||||
</article>
|
||||
</section>
|
||||
@endisset
|
||||
<section class="index-meta">
|
||||
<article>
|
||||
<h2>Recent Updates</h2>
|
||||
@for($i = 0; $i < 10; $i++)
|
||||
|
||||
@php
|
||||
$action = $recent[$i]->block_count + $recent[$i]->silence_count;
|
||||
$rating = ($action / $sources)*100;
|
||||
@endphp
|
||||
<a class="list-link" role="listitem" href="/location/{{$recent[$i]->uuid}}">
|
||||
<span class="item-rating">{{$rating}}%</span>
|
||||
<label class="item-name">{{$recent[$i]->name}}</label>
|
||||
<div class="item-silence">
|
||||
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
||||
{{$recent[$i]->silence_count}}
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
||||
{{$recent[$i]->block_count}}
|
||||
</div>
|
||||
</a>
|
||||
@endfor
|
||||
<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}}">
|
||||
<span>{{$location->block_count}}</span>
|
||||
<img class="menu-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
||||
<span>{{$location->silence_count}}</span>
|
||||
<img class="menu-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
||||
<label>{{$location->name}}</label>
|
||||
</a>
|
||||
@endforeach
|
||||
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
Reference in New Issue
Block a user