summaryrefslogtreecommitdiff
path: root/views/event.handlebars
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2025-04-28 09:02:43 +0100
committerRaphael Kabo <mail@raphaelkabo.com>2025-04-28 09:02:43 +0100
commit08fa2f616c90e59066d0308097c65c424b5b4a88 (patch)
tree129135e3019888a5fd915fba7f4310de5ed0bac7 /views/event.handlebars
parentebe7a6182fe84ac0ed49b75e40e60b54d414fe36 (diff)
Make editing mode and links clearer
Diffstat (limited to 'views/event.handlebars')
-rwxr-xr-xviews/event.handlebars15
1 files changed, 10 insertions, 5 deletions
diff --git a/views/event.handlebars b/views/event.handlebars
index 1b1022e..c0968a5 100755
--- a/views/event.handlebars
+++ b/views/event.handlebars
@@ -1,4 +1,9 @@
-<main class="event">
+<main class="event{{#if editingEnabled}} event--editing{{/if}}">
+{{#if editingEnabled}}
+<div class="event__editing-banner">
+ You are currently editing this event. Do not share this link!
+</div>
+{{/if}}
{{#if eventHasCoverImage}}
<div class="event-header-image" id="eventImageContainer" style="background-image: url(/events/{{eventData.image}});"></div>
{{else}}
@@ -70,8 +75,9 @@
{{/if}}
<li>
<span class="fa-li">
- <i class="fas fa-fw fa-share-square"></i>
+ <i class="fas fa-fw fa-users"></i>
</span>
+ <span class="text-muted">Public link:</span>
<a class="u-url" href="https://{{domain}}/{{eventData.id}}">https://{{domain}}/{{eventData.id}}</a>
<button type="button" id="copyEventLink" class="eventInformationAction button button--outline-secondary button--sm" data-clipboard-text="https://{{domain}}/{{eventData.id}}">
<i class="fas fa-copy"></i> Copy
@@ -79,9 +85,8 @@
</li>
{{#if isFederated}}
<li>
- <span class="fa-li">
- <i class="fas fa-fw fa-share-square"></i>
- </span>
+ <span class="fa-li fa-fw fediverse-icon"><img src="/images/fediverse-icon.svg" alt="Fediverse Icon" /></span>
+ <span class="text-muted">Fediverse link:</span>
@{{eventData.id}}@{{domain}}
<button type="button" id="copyAPLink" class="eventInformationAction button button--outline-secondary button--sm" data-clipboard-text="@{{eventData.id}}@{{domain}}">
<i class="fas fa-copy"></i> Copy