Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

chore: Fix formatting issue in deployment index.blade.php file

Andras Bacsai1f7725ada30e
diff --git a/resources/views/livewire/project/application/deployment/index.blade.php b/resources/views/livewire/project/application/deployment/index.blade.php
index ea7262a27c..c944efd977 100644
--- a/resources/views/livewire/project/application/deployment/index.blade.php
+++ b/resources/views/livewire/project/application/deployment/index.blade.php
@@ -72,7 +72,8 @@
x-on:click.stop="goto('{{ $application->gitCommitLink(data_get($deployment, 'commit')) }}')">
<div class="text-xs underline">
@if ($deployment->commitMessage())
- ({{data_get_str($deployment, 'commit')->limit(7)}} - {{ $deployment->commitMessage() }})
+ ({{ data_get_str($deployment, 'commit')->limit(7) }} -
+ {{ $deployment->commitMessage() }})
@else
{{ data_get_str($deployment, 'commit')->limit(7) }}
@endif
@@ -104,14 +105,16 @@
@endforelse
@if ($deployments_count > 0)
- <script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
- <script>
- function goto(url) {
- window.location.href = url;
- };
- document.addEventListener('alpine:init', () => {
+ @assets
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
+ @endassets
+ @script
+ <script>
+ function goto(url) {
+ window.location.href = url;
+ };
let timers = {};
dayjs.extend(window.dayjs_plugin_utc);
@@ -141,8 +144,8 @@
return dayjs.utc(created_at).fromNow();
}
}))
- })
- </script>
+ </script>
+ @endscript
@endif
</div>