From b3c9cba6478dc16d135313aa6d0adcc02d67ece6 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Sun, 25 Feb 2024 21:34:33 +0000 Subject: feat: optional public events/groups --- views/event.handlebars | 3 +- views/eventgroup.handlebars | 1 + views/home.handlebars | 44 +++++++++++++++---- views/layouts/main.handlebars | 2 +- views/partials/eventForm.handlebars | 8 ++++ views/partials/eventGroupForm.handlebars | 11 +++++ views/partials/sidebar.handlebars | 12 ++++-- views/publicEventList.handlebars | 72 ++++++++++++++++++++++++++++++++ 8 files changed, 138 insertions(+), 15 deletions(-) create mode 100644 views/publicEventList.handlebars (limited to 'views') diff --git a/views/event.handlebars b/views/event.handlebars index 4402578..44c2f4b 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -109,7 +109,7 @@ {{#if eventHasConcluded}} {{/if}} {{#if firstLoad}} @@ -523,7 +523,6 @@ window.eventData = {{{ json jsonData }}}; $(this).html(' Copied!'); setTimeout(function(){ $("#copyAPLink").html(' Copy');}, 5000); }) - $(".daysToDeletion").html(moment("{{eventEndISO}}").add(7, 'days').fromNow()); if ($("#joinCheckbox").is(':checked')){ $("#maxAttendeesCheckboxContainer").css("display","flex"); } diff --git a/views/eventgroup.handlebars b/views/eventgroup.handlebars index 434f691..7ad3570 100755 --- a/views/eventgroup.handlebars +++ b/views/eventgroup.handlebars @@ -122,6 +122,7 @@ {{this.name}} + {{#if this.location}} {{this.location}}{{/if}} {{this.displayDate}} {{/unless}} diff --git a/views/home.handlebars b/views/home.handlebars index add7eac..bf92724 100755 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -1,25 +1,53 @@ -

A quick and easy way to make and share events which respects your privacy.

+

Gathio is a simple, federated, privacy-first event hosting platform.

-
+
+
+ This instance, {{siteName}}, has the following features: +
-

You don't need to sign up for an account. When you create an event, we generate a password which allows you to edit the event. Send all your guests the public link, and all your co-hosts the secret editing link containing the password. A week after the event finishes, it's deleted from our servers for ever, and your email goes with it.

+
+
    + {{#each instanceRules}} +
  • {{this.text}}
  • + {{/each}} +
+
+
An example event page for a picnic. The page shows the event's location, host, date and time, and description, as well as buttons to save the event to Google Calendar, export it, and open the location in OpenStreetMap and Google Maps.
-

Also, we don't show you ads, don't sell your data, and never send you unnecessary emails.

+

Privacy-first

+ +

There are no accounts on Gathio. When you create an event, we generate a password which allows you to edit the event. Send all your guests the public link, and all your co-hosts the secret editing link containing the password.

+ +

If you supply your email, we'll send you the editing password so you don't lose it - but supplying your email is optional!

+ +

If this instance automatically deletes its events, sometime after the event finishes, it's deleted from the database for ever, and your data goes with it.

+ +

Also, Gathio doesn't show you ads, doesn't sell your data, and never sends you unnecessary emails.

+ +

But remember: all events are visible to anyone who knows the link, so probably don't use Gathio to plot your surprise birthday party or revolution. Or whatever, you do you.

+ +

Configurable

+ +

The flagship Gathio instance at gath.io is designed for anyone to create ephemeral, hidden events. Anyone can create an event; events are never displayed anywhere public; and they're deleted 7 days after they end.

+ +

But if your community sets up their own instance, you can limit event creation to a specific list of people, display events on a handy list on the homepage, and disable event deletion entirely!

+ +

Federation and self-hosting

-

But remember: all events are visible to anyone who knows the link, so probably don't use gathio to plot your surprise birthday party or revolution. Or whatever, you do you.

+

Gathio can easily be self-hosted, and supports ActivityPub services like Mastodon, Pleroma, and Friendica, allowing you to access events from anywhere on the Fediverse. We encourage you to spin up your own instance for your community. Detailed instructions on ActivityPub access and self-hosted installation live on our GitHub wiki. -

Federation and self-hosting

+

Open source

-

gathio can easily be self-hosted, and supports ActivityPub services like Mastodon, Pleroma, and Friendica, allowing you to access events from anywhere on the Fediverse. We encourage you to spin up your own instance for your community. Detailed instructions on ActivityPub access and self-hosted installation live on our GitHub wiki. Leave a question in our tracker if you encounter any issues.

+

Gathio is delighted to be open source, and is built by a lovely group of people. Leave a question in our tracker if you encounter any issues.

{{#if showKofi}}
-

If you find yourself using and enjoying gathio, consider buying me a coffee. It'll help keep the site running!

+

If you find yourself using and enjoying Gathio, consider buying Raphael a coffee. It'll help keep the project and main site running!

diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index d45d596..996d35f 100755 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -70,7 +70,7 @@
{{#if showInstanceInformation}}

- {{domain}} + {{siteName}} {{#each staticPages}} {{#if @first}} · diff --git a/views/partials/eventForm.handlebars b/views/partials/eventForm.handlebars index c2eebc3..9227300 100755 --- a/views/partials/eventForm.handlebars +++ b/views/partials/eventForm.handlebars @@ -73,6 +73,14 @@

+ {{#if showPublicEventList}} +
+ + +
+ {{/if}}
Recommended dimensions (w x h): 920px by 300px.
+{{#if showPublicEventList}} +
+ +
+ + +
+
+{{/if}}
-

gathio

+

gathio

-

Nicer events

- - New +
diff --git a/views/publicEventList.handlebars b/views/publicEventList.handlebars new file mode 100644 index 0000000..6d85ca7 --- /dev/null +++ b/views/publicEventList.handlebars @@ -0,0 +1,72 @@ +
+

{{siteName}}

+

{{siteName}} is an instance of Gathio, a simple, federated, privacy-first event hosting platform.

+ + +
+
+
Upcoming events
+ +
+ +
+
Past events
+
+ {{#if pastEvents}} + {{#each pastEvents}} + + + {{this.name}} + {{this.displayDate}} + {{#if this.eventGroup}} + In group: {{this.eventGroup.name}} + {{/if}} + + {{/each}} + {{else}} +
No events!
+ {{/if}} +
+
+
+ +
+
+
Event groups
+
+ {{#if eventGroups}} + {{#each eventGroups}} + + + {{this.name}} + + {{/each}} + {{else}} +
No groups!
+ {{/if}} +
+ +
\ No newline at end of file -- cgit v1.2.3