Refactor resource table layout in change.blade.php
This commit is contained in:
parent
7a3bb14653
commit
0ebef3792d
@ -93,57 +93,63 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</form>
|
</form>
|
||||||
<div class="w-full pt-10">
|
@if (data_get($github_app, 'installation_id'))
|
||||||
<div class="h-full">
|
<div class="w-full pt-10">
|
||||||
<div class="flex flex-col">
|
<div class="h-full">
|
||||||
<div class="flex gap-2">
|
|
||||||
<h2>Resources</h2>
|
|
||||||
</div>
|
|
||||||
<div class="pb-4 title">Here you can find all resources that are used by this source.</div>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col">
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="overflow-x-auto">
|
<div class="flex gap-2">
|
||||||
<div class="inline-block min-w-full">
|
<h2>Resources</h2>
|
||||||
<div class="overflow-hidden">
|
</div>
|
||||||
<table class="min-w-full divide-y divide-coolgray-400">
|
<div class="pb-4 title">Here you can find all resources that are used by this source.</div>
|
||||||
<thead>
|
</div>
|
||||||
<tr>
|
<div class="flex flex-col">
|
||||||
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Project
|
<div class="flex flex-col">
|
||||||
</th>
|
<div class="overflow-x-auto">
|
||||||
<th class="px-5 py-3 text-xs font-medium text-left uppercase">
|
<div class="inline-block min-w-full">
|
||||||
Environment</th>
|
<div class="overflow-hidden">
|
||||||
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Name</th>
|
<table class="min-w-full divide-y divide-coolgray-400">
|
||||||
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Type</th>
|
<thead>
|
||||||
</tr>
|
<tr>
|
||||||
</thead>
|
<th class="px-5 py-3 text-xs font-medium text-left uppercase">
|
||||||
<tbody class="divide-y divide-coolgray-400">
|
Project
|
||||||
@forelse ($applications->sortBy('name',SORT_NATURAL) as $resource)
|
</th>
|
||||||
<tr class="text-white bg-coolblack hover:bg-coolgray-100">
|
<th class="px-5 py-3 text-xs font-medium text-left uppercase">
|
||||||
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
Environment</th>
|
||||||
{{ data_get($resource->project(), 'name') }}
|
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Name
|
||||||
</td>
|
</th>
|
||||||
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Type
|
||||||
{{ data_get($resource, 'environment.name') }}
|
</th>
|
||||||
</td>
|
|
||||||
<td class="px-5 py-4 text-sm whitespace-nowrap"><a class=""
|
|
||||||
href="{{ $resource->link() }}">{{ $resource->name }}
|
|
||||||
<x-internal-link /></a>
|
|
||||||
</td>
|
|
||||||
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
|
||||||
{{ str($resource->type())->headline() }}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
</thead>
|
||||||
@endforelse
|
<tbody class="divide-y divide-coolgray-400">
|
||||||
</tbody>
|
@forelse ($applications->sortBy('name',SORT_NATURAL) as $resource)
|
||||||
</table>
|
<tr class="text-white bg-coolblack hover:bg-coolgray-100">
|
||||||
|
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
||||||
|
{{ data_get($resource->project(), 'name') }}
|
||||||
|
</td>
|
||||||
|
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
||||||
|
{{ data_get($resource, 'environment.name') }}
|
||||||
|
</td>
|
||||||
|
<td class="px-5 py-4 text-sm whitespace-nowrap"><a
|
||||||
|
class=""
|
||||||
|
href="{{ $resource->link() }}">{{ $resource->name }}
|
||||||
|
<x-internal-link /></a>
|
||||||
|
</td>
|
||||||
|
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
||||||
|
{{ str($resource->type())->headline() }}</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
@endif
|
||||||
@else
|
@else
|
||||||
<div class="flex items-center gap-2 pb-4">
|
<div class="flex items-center gap-2 pb-4">
|
||||||
<h1>GitHub App</h1>
|
<h1>GitHub App</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user