From 9f5d9847f067e9d8b1fbcbd0914d07747e74b5e6 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 25 Jul 2020 22:53:46 +0200 Subject: [PATCH] WebHost: Clean up some whitespace --- WebHostLib/templates/tracker.html | 112 +++++++++++++++--------------- 1 file changed, 55 insertions(+), 57 deletions(-) diff --git a/WebHostLib/templates/tracker.html b/WebHostLib/templates/tracker.html index d352ae0e..a6322d30 100644 --- a/WebHostLib/templates/tracker.html +++ b/WebHostLib/templates/tracker.html @@ -5,18 +5,16 @@ - {% endblock %} {% block body %} -
- {% if video %}Multistream - {% endfor %} - {% endif %} + {%- if platform == "Twitch" -%}t{%- else -%}yt{%- endif -%}:{{- link -}}/ + {%- endfor -%}">Multistream + {%- endif -%}
{% for team, players in inventory.items() %}
@@ -25,46 +23,46 @@ # Name - {% for name in tracking_names %} - {% if name in icons %} + {%- for name in tracking_names -%} + {%- if name in icons -%} {{ name|e }} - {% else %} + {%- else -%} {{ name|e }} - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%} - {% for player, items in players.items() %} + {%- for player, items in players.items() -%} {{ loop.index }} - {% if (team, loop.index) in video %} - {% if video[(team, loop.index)][0] == "Twitch" %} + {%- if (team, loop.index) in video -%} + {%- if video[(team, loop.index)][0] == "Twitch" -%} {{ player_names[(team, loop.index)] }} ▶️ - {% elif video[(team, loop.index)][0] == "Youtube" %} + {%- elif video[(team, loop.index)][0] == "Youtube" -%} {{ player_names[(team, loop.index)] }} ▶️ - {% endif %} - {% else %} + {%- endif -%} + {%- else -%} {{ player_names[(team, loop.index)] }} - {% endif %} - {% for id in tracking_ids %} - {% if items[id] %} + {%- endif -%} + {%- for id in tracking_ids -%} + {%- if items[id] -%} {% if id in multi_items %}{{ items[id] }}{% else %}✔️{% endif %} - {% else %} + {%- else -%} - {% endif %} + {%- endif -%} {% endfor %} - {% endfor %} + {%- endfor -%}
@@ -77,69 +75,69 @@ # Name - {% for area in ordered_areas %} - {% set colspan = 1 %} - {% if area in key_locations %} - {% set colspan = colspan + 1 %} - {% endif %} - {% if area in big_key_locations %} - {% set colspan = colspan + 1 %} - {% endif %} - {% if area in icons %} + {%- for area in ordered_areas -%} + {%- set colspan = 1 -%} + {%- if area in key_locations -%} + {%- set colspan = colspan + 1 -%} + {%- endif -%} + {%- if area in big_key_locations -%} + {%- set colspan = colspan + 1 -%} + {%- endif -%} + {%- if area in icons -%} {{ area }} - {% else %} + {%- else -%} {{ area }} - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%} Last
Activity - {% for area in ordered_areas %} + {%- for area in ordered_areas -%} Checks - {% if area in key_locations %} + {%- if area in key_locations -%} Small Key - {% endif %} - {% if area in big_key_locations %} + {%- endif -%} + {%- if area in big_key_locations -%} Big Key - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%} - {% for player, checks in players.items() %} + {%- for player, checks in players.items() -%} {{ loop.index }} {{ player_names[(team, loop.index)]|e }} - {% for area in ordered_areas %} - {% set checks_done = checks[area] %} - {% set checks_total = checks_in_area[area] %} - {% if checks_done == checks_total %} + {%- for area in ordered_areas -%} + {%- set checks_done = checks[area] -%} + {%- set checks_total = checks_in_area[area] -%} + {%- if checks_done == checks_total -%} {{ checks_done }}/{{ checks_total }} - {% else %} + {%- else -%} {{ checks_done }}/{{ checks_total }} - {% endif %} - {% if area in key_locations %} + {%- endif -%} + {%- if area in key_locations -%} {{ inventory[team][player][small_key_ids[area]] }} - {% endif %} - {% if area in big_key_locations %} + {%- endif -%} + {%- if area in big_key_locations -%} {% if inventory[team][player][big_key_ids[area]] %}✔️{% endif %} - {% endif %} - {% endfor %} - {% if activity_timers[(team, player)] %} + {%- endif -%} + {%- endfor -%} + {%- if activity_timers[(team, player)] -%} {{ activity_timers[(team, player)] | render_timedelta }} - {% else %} + {%- else -%} None - {% endif %} + {%- endif -%} - {% endfor %} + {%- endfor -%}