diff --git a/frontend/app/templates/gallery.html b/frontend/app/templates/gallery.html index 4fb9604..5d4bcd1 100644 --- a/frontend/app/templates/gallery.html +++ b/frontend/app/templates/gallery.html @@ -1,159 +1,236 @@ {% extends "base.html" %} {% block title %}My Gallery{% endblock %} {% block content %} -
-

My Gallery

+
+
+

My Gallery

- - {% if pending_videos %} -
-

- Pending Creations -

-
- {% for video in pending_videos %} - + {% if pending_videos %} +
+

+ Pending Creations +

+
+ {% endif %} + + +
+

+ Generated Images +

+ {% if generated_images %} + + {% else %} +

+ You haven't generated any images yet. + Generate one now. +

+ {% endif %} +
+ + +
+

+ Generated Videos +

+ {% if completed_videos %} + + {% endif %} +
+

{{ video.prompt }}

+

+ Video ID: {{ video.id[:8] }}... +

+

+ {{ video.created_at | fromisoformat | humantime }} +

+
+ + {% endfor %} +
+ {% else %} +

+ You haven't generated any videos yet. + Generate one now. +

+ {% endif %}
-
- {% endif %} - -
-

- Generated Images -

- {% if generated_images %} -
- {% for image in generated_images %} - + - {% else %} -

- You haven't generated any images yet. - Generate one now. -

- {% endif %}
- -
-

- Generated Videos -

- {% if completed_videos %} -
- {% for video in completed_videos %} - -
- - - - -
-
-

{{ video.prompt }}

-
-
- {% endfor %} -
- {% else %} -

- You haven't generated any videos yet. - Generate one now. -

- {% endif %} + + - -
-

- My Uploads -

- {% if uploads %} -
- {% for image in uploads %} - - {{ image.filename }} -
-

{{ image.filename }}

-
-
- {% endfor %} -
- {% else %} -

You haven't uploaded any images.

- {% endif %} -
+ {% block scripts %} + + {% endblock %}
-{% endblock %}