From e679ee563a5f45790d04e268843840ae2c616c2f Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 12 Oct 2021 11:20:09 -0700 Subject: [PATCH] * Frontend now accounts for new /static prefix --- api/templates/list.html.tera | 22 +++++++++++++--------- ts/index.ts | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/api/templates/list.html.tera b/api/templates/list.html.tera index 91fa5a4..147b805 100644 --- a/api/templates/list.html.tera +++ b/api/templates/list.html.tera @@ -3,17 +3,21 @@ - + Shockrah's Clips - + {% if page == "category" %} - - - - + + + + - + {% if ogimg %} + + {% else %} + + {% endif %} {# Otherwise we defautl to the home tags #} {% else %} @@ -21,9 +25,9 @@ - + {% endif %} - +
diff --git a/ts/index.ts b/ts/index.ts index 2377c55..ba32515 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -36,7 +36,7 @@ class Category { if(!(this.thumbnail_b64 == null || this.thumbnail_b64.length == 0)) { nail.setAttribute('src', `data:image/jpg;base64,${this.thumbnail_b64}`) } else{ - nail.setAttribute('src', '/cantfindshit.gif') + nail.setAttribute('src', '/static/cantfindshit.gif') } return nail