Browse Source

Now displays fulfilled rewards as crossed off, instead of removing them entirely

allens 1 week ago
parent
commit
0800569a03
1 changed files with 12 additions and 10 deletions
  1. 12 10
      ownchatbot/templates/userpanel.html

+ 12 - 10
ownchatbot/templates/userpanel.html

@@ -263,18 +263,20 @@
                 </thead>
                 <tbody>
                 {% for row in queue %}
-                    {% if not row[4] %}
-                    <tr>
-                        <td>{{ row[1].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
+                <tr>
+                    <td>{{ row[1].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
+                    {% if row[4] %}
+                        <td><s>{{ prefix }}{{ row[2] }}</s></td>
+                    {% else %}
                         <td>{{ prefix }}{{ row[2] }}</td>
-                        <td>{{ all_rewards[row[2]]["info"] }}</td>
-                        {% if row[6] %}
-                        <td>{{ row[6] }}</td>
-                        {% else %}
-                        <td></td>
-                        {% endif %}
-                    </tr>
                     {% endif %}
+                    <td>{{ all_rewards[row[2]]["info"] }}</td>
+                    {% if row[6] %}
+                    <td>{{ row[6] }}</td>
+                    {% else %}
+                    <td></td>
+                    {% endif %}
+                </tr>
                 {% endfor %}
                 </tbody>
             </table>