]> littlesong.place Git - littlesongplace.git/commitdiff
Use icons for comment edit/delete
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 23 Feb 2025 14:37:36 +0000 (09:37 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 23 Feb 2025 14:37:36 +0000 (09:37 -0500)
templates/song-macros.html
todo.txt

index 3e954b4da55fe76672f1b0b8cdd3d5f3a8d6de23..65bd0e6bfa8f2363c65c0165cf86a679e4bc3462 100644 (file)
 
                 <!-- Only commenter can edit comment -->
                 {% if session['userid'] == comment['userid'] %}
-                <a href="/comment?commentid={{ comment['commentid'] }}&songid={{ song.songid }}" class="comment-button">
-                    Edit
+                <a href="/comment?commentid={{ comment['commentid'] }}&songid={{ song.songid }}" class="song-list-button" title="Edit">
+                    <img class="lsp_btn_edit02" />
                 </a>
                 {% endif %}
 
                 <!-- Commenter and song owner can delete comment -->
                 {% if session['userid'] == comment['userid'] or session['userid'] == song.userid %}
-                <a href="/delete-comment/{{ comment['commentid'] }}" onclick="return confirm(&#34;Are you sure you want to delete this comment?&#34;)" class="comment-button">
-                    Delete
+                <a href="/delete-comment/{{ comment['commentid'] }}" onclick="return confirm(&#34;Are you sure you want to delete this comment?&#34;)" class="song-list-button" title="Delete">
+                    <img class="lsp_btn_delete02" />
                 </a>
                 {% endif %}
 
 
                     <!-- Only commenter can edit comment -->
                     {% if session['userid'] == reply['userid'] %}
-                    <a href="/comment?commentid={{ reply['commentid'] }}&songid={{ song.songid }}&replytoid={{ comment['commentid'] }}" class="comment-button">
-                        Edit
+                    <a href="/comment?commentid={{ reply['commentid'] }}&songid={{ song.songid }}&replytoid={{ comment['commentid'] }}" class="song-list-button" title="Edit">
+                        <img class="lsp_btn_edit02" />
                     </a>
                     {% endif %}
 
                     <!-- Commenter and song owner can delete comment -->
                     {% if session['userid'] == reply['userid'] or session['userid'] == song.userid %}
-                    <a href="/delete-comment/{{ reply['commentid'] }}" onclick="return confirm(&#34;Are you sure you want to delete this comment?&#34;)" class="comment-button">
-                        Delete
+                    <a href="/delete-comment/{{ reply['commentid'] }}" onclick="return confirm(&#34;Are you sure you want to delete this comment?&#34;)" class="song-list-button" title="delete">
+                        <img class="lsp_btn_delete02" />
                     </a>
                     {% endif %}
 
index 07e39ae7877fdc5b2aa317e8acc61d452d3032fb..f3755a07494a66b6e7dbff4b8abd092b1edb5e15 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -2,7 +2,6 @@ NOW
 
 SOON
 - Use profile colors for song edit, songs by tag (w/ username)
-- Use edit/delete icons in comments
 - Break up main.py, test_offline.py
 - Pinned profile playlists
 - Image support in comments, descriptions, bios, etc.