From edd46eae58eae1c5a81d626e43c32387a541bceb Mon Sep 17 00:00:00 2001 From: Daniel Szabo Date: Mon, 7 Nov 2022 20:30:33 +0200 Subject: [PATCH] Improved /pasta and /pastalist UX - adjusted table column widths so buttons dont wrap into next row - added Open button to url pastas so clicking on their keys redirect to their /pasta view, consistent with the rest of the pastas - added copy redirect button to /pasta view of url pastas to make it easier to get the /url endpoint url --- templates/pasta.html | 28 ++++++++++++++---- templates/pastalist.html | 64 +++++++++++++++++----------------------- 2 files changed, 50 insertions(+), 42 deletions(-) diff --git a/templates/pasta.html b/templates/pasta.html index 47dd01d..360425c 100644 --- a/templates/pasta.html +++ b/templates/pasta.html @@ -1,9 +1,14 @@ {% include "header.html" %}
{% if pasta.content != "No Text Content" %} - + {% if args.public_path.to_string() != "" && pasta.pasta_type == "url" %} + + {%- endif %} Raw Text Content {%- endif %} @@ -19,7 +24,7 @@ {{pasta.id_as_animals()}} {% if args.public_path.to_string() != "" %} - {%- endif %} @@ -59,8 +64,10 @@