From: Chris Fulljames Date: Sun, 13 Apr 2025 19:49:34 +0000 (-0400) Subject: Add event editor X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=a3b5ffc2b64557ba8d9727e45c34661fc082f22e;p=littlesongplace.git Add event editor --- diff --git a/src/littlesongplace/templates/jam-event.html b/src/littlesongplace/templates/jam-event.html index b001ce6..b16250e 100644 --- a/src/littlesongplace/templates/jam-event.html +++ b/src/littlesongplace/templates/jam-event.html @@ -6,36 +6,82 @@

{{ event.title }} - {{ jam.title }}

-
- Host: - {{ jam.ownername }} +
+
+ Host: + {{ jam.ownername }} +
+ {% if event.startdate %} + Start Date: + {{ event.startdate.astimezone().strftime("%Y-%m-%d %I:%M%p") }} +
+ {% endif %} + {% if event.enddate %} + End Date: + {{ event.enddate.astimezone().strftime("%Y-%m-%d %I:%M%p") }} + {% endif %} +
+ + {% if session["userid"] == jam.ownerid -%} +
+ + +
+ {%- endif %} + +
+ {{ event.description }} +
+ +

About the Jam

+
+ {{ jam.description }} +
+ +

Submissions

+ + {% include "song-list.html" %} + +

Comments

+ {% from "comment-thread.html" import comment_thread %} + {{ comment_thread(event.threadid, session['userid'], jam.ownerid, event.comments) }} +
+ +{% if session["userid"] == jam.ownerid -%} + - -
-{{ event.description }} -
- -

About the Jam

-
-{{ jam.description }} -
- -

Submissions

- -{% include "song-list.html" %} - -

Comments

-{% from "comment-thread.html" import comment_thread %} -{{ comment_thread(event.threadid, session['userid'], jam.ownerid, event.comments) }} + +
+ + Cancel + +
+ + +{%- endif %} {# jam owner #} {% endblock %} diff --git a/src/littlesongplace/templates/jam.html b/src/littlesongplace/templates/jam.html index 0031052..8cad635 100644 --- a/src/littlesongplace/templates/jam.html +++ b/src/littlesongplace/templates/jam.html @@ -6,12 +6,13 @@

{{ jam.title }}

-
- Host: - {{ jam.ownername }} -
-
+
+ Host: + {{ jam.ownername }} +
+
+ {% if session["userid"] == jam.ownerid -%}