From 010fd0207a06a37769385e14b9f808e894fb2cae Mon Sep 17 00:00:00 2001 From: teraflops Date: Wed, 11 Jun 2025 17:58:56 +0200 Subject: [PATCH] paste settings improved --- templates/paste_settings.html | 65 ++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/templates/paste_settings.html b/templates/paste_settings.html index f48aaed..0579bc5 100644 --- a/templates/paste_settings.html +++ b/templates/paste_settings.html @@ -2,38 +2,56 @@ {% block title %}Paste Settings{% endblock %} {% block content %}
-

Settings for: paste_{{ paste.id }}.{{ paste.get_extension() }}

-
-
- - -
+

Paste Settings: paste_{{ paste.id }}.{{ paste.get_extension() }}

-
- - -
+ + + + + + + + + + + + + + + + +
ID{{ paste.id }}
Filename{{ paste.filename }}
Content Type{{ paste.content_type }}
Size (bytes){{ paste.size }}
Created At{{ paste.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
Last Edited At{{ paste.last_edited_at.strftime('%Y-%m-%d %H:%M:%S') if paste.last_edited_at else 'Never' }}
Owner ID{{ paste.owner_id }}
User ID{{ paste.user_id }}
Private{{ 'Yes' if paste.private else 'No' }}
Is Favorite?{{ 'Yes' if current_user in paste.favorites else 'No' }}
Shared With + {% if paste.shared_with %} + {{ paste.shared_with | map(attribute='username') | join(', ') }} + {% else %} + Nobody + {% endif %} +
+ + + {% if paste.content_type.startswith('text/') %}
- - + +
+ {% endif %}
-
- - +
+ +
@@ -43,3 +61,4 @@ {% endblock %} +