fix(fastapi): fix comment edit image sources

These were using the old comment image sources. Slipped in
due to cache and not checking without cache.

Fixed them to use src="/static/images/...".

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-18 16:43:10 -08:00
parent dbe5cb4a33
commit 7739b2178e
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
value="{{ request.url.path }}" /> value="{{ request.url.path }}" />
<input type="image" <input type="image"
class="delete-comment" class="delete-comment"
src="/images/x.min.svg" src="/static/images/x.min.svg"
width="11" width="11"
height="11" height="11"
alt="{{ 'Delete comment' | tr }}" alt="{{ 'Delete comment' | tr }}"
@ -29,7 +29,7 @@
class="edit-comment" class="edit-comment"
title="{{ 'Edit comment' | tr }}" title="{{ 'Edit comment' | tr }}"
> >
<img src="/images/pencil.min.svg" alt="{{ 'Edit comment' | tr }}" <img src="/static/images/pencil.min.svg" alt="{{ 'Edit comment' | tr }}"
width="11" height="11"> width="11" height="11">
</a> </a>
@ -57,7 +57,7 @@
<input type="hidden" name="next" value="{{ request.url.path }}" /> <input type="hidden" name="next" value="{{ request.url.path }}" />
<input type="image" <input type="image"
class="pin-comment" class="pin-comment"
src="/images/unpin.min.svg" src="/static/images/unpin.min.svg"
alt="{{ 'Unpin comment' | tr }}" alt="{{ 'Unpin comment' | tr }}"
title="{{ 'Unpin comment' | tr }}" title="{{ 'Unpin comment' | tr }}"
name="submit" name="submit"
@ -73,7 +73,7 @@
<input type="hidden" name="next" value="{{ request.url.path }}" /> <input type="hidden" name="next" value="{{ request.url.path }}" />
<input type="image" <input type="image"
class="pin-comment" class="pin-comment"
src="/images/pin.min.svg" src="/static/images/pin.min.svg"
alt="{{ 'Pin comment' | tr }}" alt="{{ 'Pin comment' | tr }}"
title="{{ 'Pin comment' | tr }}" title="{{ 'Pin comment' | tr }}"
name="submit" name="submit"
@ -91,7 +91,7 @@
<input type="hidden" name="next" value="{{ request.url.path }}" /> <input type="hidden" name="next" value="{{ request.url.path }}" />
<input type="image" <input type="image"
class="undelete-comment" class="undelete-comment"
src="/images/action-undo.min.svg" src="/static/images/action-undo.min.svg"
alt="{{ 'Undelete comment' | tr }}" alt="{{ 'Undelete comment' | tr }}"
title="{{ 'Undelete comment' | tr }}" title="{{ 'Undelete comment' | tr }}"
name="submit" value="1" width="11" height="11" /> name="submit" value="1" width="11" height="11" />

View file

@ -1,6 +1,6 @@
function add_busy_indicator(sibling) { function add_busy_indicator(sibling) {
const img = document.createElement('img'); const img = document.createElement('img');
img.src = "/images/ajax-loader.gif"; img.src = "/static/images/ajax-loader.gif";
img.classList.add('ajax-loader'); img.classList.add('ajax-loader');
img.style.height = 11; img.style.height = 11;
img.style.width = 16; img.style.width = 16;