Uploaded user now visible during ranking and result viewing
authorGeorgios Atheridis <georgios@atheridis.org>
Mon, 23 Jan 2023 16:01:22 +0000 (16:01 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Mon, 23 Jan 2023 16:01:22 +0000 (16:01 +0000)
When ranking clips and viewing the results the twitch username
of the person who sent the clip is now visible. This name is the
username saved in the database and does not make an API call
to twitch servers using the user id. As a result, the twitch
username may be outdated.

TODO
core/manager/templates/manager/clip_viewer.html
core/manager/templates/manager/final.html
core/static/main.css

diff --git a/TODO b/TODO
index 7185a54058454919d8e4d59c43e71d9d8a684f99..8520011765dd05398f5a48b155980a95a38cd2a9 100644 (file)
--- a/TODO
+++ b/TODO
@@ -4,7 +4,6 @@
 - Implement Clip categories
 
 - Display clip info more clearly
--- Who uploaded the clip
--- Clip comments
+-- Clip comments?
 
 - Refresh tokens
index c15202b5813f79ec688a71dc325bdfb910d34581..3660ffa44a76fd290672640af1bba37e4265ab0f 100644 (file)
@@ -1,11 +1,12 @@
 {% extends 'base.html' %}
 {% block content %}
 <div id="group">
+    <h1>uploaded by: {{ video.account.username }}</h1>
     <iframe
             src="https://clips.twitch.tv/embed?clip={{ video.id }}&parent=localhost"
             height="600"
             width="1000"
-            preload="auto"
+            preload="none"
             allowfullscreen>
     </iframe>
     <div id="buttons">
index fb2357696b26c4b004dc5bc62ceff4745dec6085..a9ca52d35ad9dafa0a90c87958b9fd90d9a04b58 100644 (file)
@@ -9,11 +9,12 @@
         <td>
             <iframe
                     src="https://clips.twitch.tv/embed?clip={{ video.id }}&parent=localhost"
-                    height="180"
-                    width="320"
+                    height="135"
+                    width="240"
                     preload="none"
                     allowfullscreen>
             </iframe>
+            <p class="name">{{ video.account.username }}</p>
         </td>
         {% endif %}
         {% endfor %}
index bfd3b233f36b8cfe271a1c2e78d5bfff0aac6eea..823a3cda16e5aa5981dfba947e4e9ff298b141b2 100644 (file)
@@ -159,3 +159,12 @@ a:active.btn {
     color: #DDD;
 }
 
+#final-ranks {
+    padding-top: 3em;
+}
+
+#final-ranks p.name {
+    margin-top: 0;
+    display: flex;
+    justify-content: center;
+}