mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
23 lines
747 B
HTML
23 lines
747 B
HTML
<connectionAlert:>
|
|
<div class="connection">
|
|
<!--
|
|
connected and canConnect are built-in properties of model. If a variable
|
|
is not defined in the current context, it will be looked up in the model
|
|
data and the model properties
|
|
-->
|
|
{#unless connected}
|
|
<p class="alert">
|
|
{#if canConnect}
|
|
<!-- Leading space is removed, and trailing space is maintained -->
|
|
Offline
|
|
<!-- a :self path alias is automatically created per component -->
|
|
{#unless :self.hideReconnect}
|
|
– <a x-bind="click:connect">Reconnect</a>
|
|
{/}
|
|
{else}
|
|
Unable to reconnect – <a x-bind="click:reload">Reload</a>
|
|
{/}
|
|
</p>
|
|
{/}
|
|
</div>
|