53 lines
2.3 KiB
PHP
Raw Normal View History

2023-05-18 15:19:23 +02:00
<nav class="flex gap-4 py-2 border-b-2 border-solid border-coolgray-200">
2023-05-09 09:54:43 +02:00
<a
href="{{ route('project.application.configuration', [
'project_uuid' => Route::current()->parameters()['project_uuid'],
'application_uuid' => Route::current()->parameters()['application_uuid'],
'environment_name' => Route::current()->parameters()['environment_name'],
]) }}">
2023-05-16 20:47:59 +02:00
Configuration
2023-05-08 12:22:45 +02:00
</a>
2023-05-09 09:54:43 +02:00
<a
href="{{ route('project.application.deployments', [
'project_uuid' => Route::current()->parameters()['project_uuid'],
'application_uuid' => Route::current()->parameters()['application_uuid'],
'environment_name' => Route::current()->parameters()['environment_name'],
]) }}">
2023-05-16 20:47:59 +02:00
Deployments
</a>
2023-05-18 15:19:23 +02:00
<div class="flex-1"></div>
<div class="dropdown dropdown-hover">
2023-05-19 14:10:42 +02:00
<x-inputs.button>Links
<x-chevron-down />
</x-inputs.button>
<ul tabindex="0" class="p-2 font-bold text-white rounded min-w-max dropdown-content menu bg-coolgray-200">
2023-05-18 15:19:23 +02:00
<li>
2023-05-19 14:10:42 +02:00
<a class="text-xs" target="_blank" href="{{ $application->gitBranchLocation }}">
2023-05-18 15:19:23 +02:00
Open on Git
2023-05-18 13:26:35 +02:00
<x-external-link />
</a>
2023-05-18 15:19:23 +02:00
</li>
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
@if (config('app.env') === 'local')
<li>
2023-05-19 14:10:42 +02:00
<a class="text-xs " target="_blank"
href="http://localhost:{{ explode(':', $port)[0] }}">Open
2023-05-18 15:19:23 +02:00
{{ explode(':', $port)[0] }}
<x-external-link />
</a>
</li>
@else
<li>
<a class="text-xs" target="_blank"
href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">Open
{{ $port }}</a>
</li>
@endif
@endforeach
2023-05-16 21:49:29 +02:00
@endif
2023-05-18 15:19:23 +02:00
</ul>
</div>
2023-05-16 21:49:29 +02:00
<livewire:project.application.deploy :applicationId="$application->id" />
2023-04-19 12:42:15 +02:00
</nav>