From 7f9c7085f03afbf69e186423d0e213323dda7b19 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 8 Jan 2021 13:57:27 -0800 Subject: [PATCH] Rename tag_object -> tag_card. --- README.md | 1 - .../etiquette_flask/static/css/etiquette.css | 10 ++-- .../static/css/theme_pearl.css | 4 +- .../static/css/theme_slate.css | 4 +- .../static/css/theme_turquoise.css | 4 +- .../etiquette_flask/templates/photo.html | 38 ++++++------- .../etiquette_flask/templates/search.html | 24 ++++----- .../{tag_object.html => tag_card.html} | 6 +-- frontends/etiquette_flask/templates/tags.html | 54 +++++++++---------- 9 files changed, 72 insertions(+), 73 deletions(-) rename frontends/etiquette_flask/templates/{tag_object.html => tag_card.html} (90%) diff --git a/README.md b/README.md index f555615..b3c5d11 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,6 @@ Here is a brief overview of the project to help you learn your way around: - When batch fetching objects, consider whether or not a NoSuch should be raised. Perhaps a warningbag should be used. - Find a way to batch the fetching of photo tags in a way that isn't super ugly (e.g. on an album page, the photos themselves are batched, but then the `photo.get_tags()` on each one is not. In order to batch this we would have to have a separate function that fetches a whole bunch of tags and assigns them to the photo object). - Check for embedded cover art when thumbnailing audio files. -- Rename "tag_object" to tag card and unify the card experience. - Batch movement of Albums... but without winding up with a second clipboard system? - Overall, more dynamism with cards and tag objects and updating page without requiring refresh. - Serve RSS/Atom forms of search results. diff --git a/frontends/etiquette_flask/static/css/etiquette.css b/frontends/etiquette_flask/static/css/etiquette.css index 0037ae1..f2f99d2 100644 --- a/frontends/etiquette_flask/static/css/etiquette.css +++ b/frontends/etiquette_flask/static/css/etiquette.css @@ -165,22 +165,22 @@ is hovered over. { display: none; } -.tag_object:hover ~ * .remove_tag_button, -.tag_object:hover ~ .remove_tag_button, +.tag_card:hover ~ * .remove_tag_button, +.tag_card:hover ~ .remove_tag_button, .remove_tag_button:hover, .remove_tag_button_perm:hover { display:inline; } -.tag_object +.tag_card { border-radius: 2px; padding-left: 2px; padding-right: 2px; - background-color: var(--color_tag_object_bg); - color: var(--color_tag_object_fg); + background-color: var(--color_tag_card_bg); + color: var(--color_tag_card_fg); font-size: 0.9em; text-decoration: none; diff --git a/frontends/etiquette_flask/static/css/theme_pearl.css b/frontends/etiquette_flask/static/css/theme_pearl.css index 8b315a3..94b48f7 100644 --- a/frontends/etiquette_flask/static/css/theme_pearl.css +++ b/frontends/etiquette_flask/static/css/theme_pearl.css @@ -15,6 +15,6 @@ --color_shadow: rgba(0, 0, 0, 0.5); --color_highlight: rgba(255, 255, 255, 0.5); - --color_tag_object_bg: #fff; - --color_tag_object_fg: black; + --color_tag_card_bg: #fff; + --color_tag_card_fg: black; } diff --git a/frontends/etiquette_flask/static/css/theme_slate.css b/frontends/etiquette_flask/static/css/theme_slate.css index 26bf190..4c467b2 100644 --- a/frontends/etiquette_flask/static/css/theme_slate.css +++ b/frontends/etiquette_flask/static/css/theme_slate.css @@ -15,8 +15,8 @@ --color_shadow: rgba(0, 0, 0, 0.5); --color_highlight: rgba(255, 255, 255, 0.5); - --color_tag_object_bg: #e6e6e6; - --color_tag_object_fg: black; + --color_tag_card_bg: #e6e6e6; + --color_tag_card_fg: black; } button, diff --git a/frontends/etiquette_flask/static/css/theme_turquoise.css b/frontends/etiquette_flask/static/css/theme_turquoise.css index 80d522f..6276c1d 100644 --- a/frontends/etiquette_flask/static/css/theme_turquoise.css +++ b/frontends/etiquette_flask/static/css/theme_turquoise.css @@ -15,6 +15,6 @@ --color_shadow: rgba(0, 0, 0, 0.5); --color_highlight: rgba(255, 255, 255, 0.5); - --color_tag_object_bg: #fff; - --color_tag_object_fg: blue; + --color_tag_card_bg: #fff; + --color_tag_card_fg: blue; } diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index 4e4578f..912564c 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -2,7 +2,7 @@ {% import "header.html" as header %} - {% import "tag_object.html" as tag_object %} + {% import "tag_card.html" as tag_card %} {{photo.basename}} | Photos @@ -161,7 +161,7 @@ {% set tags = photo.get_tags()|sort(attribute='name') %} {% for tag in tags %}
  • - {{tag_object.tag_object(tag, link="info", with_alt_description=True)}}
  • @@ -327,28 +327,28 @@