summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2025-05-28 18:47:59 +0100
committerGitHub <noreply@github.com>2025-05-28 18:47:59 +0100
commit4664b6968fdcaca54268d60f400da02364213f05 (patch)
treecfdf17ac54d0201241c9df0a5060bf0012d6de69 /views
parentfd637b405c8784a07dabd54b10fda98ad9f4a4ad (diff)
parent403884828a925118c89474c8d98bae04256f1a86 (diff)
Merge pull request #211 from lowercasename/clearer-editing-mode
Clearer editing mode
Diffstat (limited to 'views')
-rwxr-xr-xviews/event.handlebars15
-rwxr-xr-xviews/eventgroup.handlebars8
-rwxr-xr-xviews/layouts/main.handlebars2
3 files changed, 18 insertions, 7 deletions
diff --git a/views/event.handlebars b/views/event.handlebars
index 53ee39c..703c1d4 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">
+ {{t "views.event.currentlyediting" }}
+</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">{{ t "views.event.publiclink" }}:</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> {{t "common.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">{{ t "views.event.fediverselink" }}:</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> {{t "common.copy" }}
diff --git a/views/eventgroup.handlebars b/views/eventgroup.handlebars
index 6dcf555..5fcc6c2 100755
--- a/views/eventgroup.handlebars
+++ b/views/eventgroup.handlebars
@@ -1,4 +1,9 @@
<main class="event">
+{{#if editingEnabled}}
+<div class="event__editing-banner">
+ {{ t "views.event.currentlyediting" }}
+</div>
+{{/if}}
{{#if eventGroupHasCoverImage}}
<div class="event-header-image" id="eventImageContainer" style="background-image: url(/events/{{eventGroupData.image}});"></div>
{{else}}
@@ -47,8 +52,9 @@
{{/if}}
<li>
<span class="fa-li">
- <i class="fas fa-share-square"></i>
+ <i class="fas fa-users"></i>
</span>
+ <span class="text-muted">{{t "views.event.publiclink" }}:</span>
<a href="https://{{domain}}/group/{{eventGroupData.id}}">https://{{domain}}/group/{{eventGroupData.id}}</a>
<button type="button" id="copyEventLink" class="eventInformationAction button button--outline-secondary button--sm" data-clipboard-text="https://{{domain}}/group/{{eventGroupData.id}}">
<i class="fas fa-copy"></i> {{t "common.copy" }}
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars
index f3b39d4..d2eeeac 100755
--- a/views/layouts/main.handlebars
+++ b/views/layouts/main.handlebars
@@ -57,7 +57,7 @@
<header id="sidebar">
{{>sidebar}}
</header>
- <section id="content">
+ <section id="content" {{#if editingEnabled}}class="content--editing"{{/if}}>
{{{body}}}
<footer>
{{#if showInstanceInformation}}