Refactor resource table layout in change.blade.php

This commit is contained in:
Andras Bacsai 2024-03-21 14:49:13 +01:00
parent 7a3bb14653
commit 0ebef3792d

View File

@ -93,6 +93,7 @@
</div> </div>
@endif @endif
</form> </form>
@if (data_get($github_app, 'installation_id'))
<div class="w-full pt-10"> <div class="w-full pt-10">
<div class="h-full"> <div class="h-full">
<div class="flex flex-col"> <div class="flex flex-col">
@ -109,12 +110,15 @@
<table class="min-w-full divide-y divide-coolgray-400"> <table class="min-w-full divide-y divide-coolgray-400">
<thead> <thead>
<tr> <tr>
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Project <th class="px-5 py-3 text-xs font-medium text-left uppercase">
Project
</th> </th>
<th class="px-5 py-3 text-xs font-medium text-left uppercase"> <th class="px-5 py-3 text-xs font-medium text-left uppercase">
Environment</th> Environment</th>
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Name</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Name
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Type</th> </th>
<th class="px-5 py-3 text-xs font-medium text-left uppercase">Type
</th>
</tr> </tr>
</thead> </thead>
<tbody class="divide-y divide-coolgray-400"> <tbody class="divide-y divide-coolgray-400">
@ -126,7 +130,8 @@
<td class="px-5 py-4 text-sm whitespace-nowrap"> <td class="px-5 py-4 text-sm whitespace-nowrap">
{{ data_get($resource, 'environment.name') }} {{ data_get($resource, 'environment.name') }}
</td> </td>
<td class="px-5 py-4 text-sm whitespace-nowrap"><a class="" <td class="px-5 py-4 text-sm whitespace-nowrap"><a
class=""
href="{{ $resource->link() }}">{{ $resource->name }} href="{{ $resource->link() }}">{{ $resource->name }}
<x-internal-link /></a> <x-internal-link /></a>
</td> </td>
@ -144,6 +149,7 @@
</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>