mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-16 04:37:29 +08:00
hardened ui against the db not being upgraded or importer not being ran
This commit is contained in:
@@ -124,6 +124,12 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if wears|length == 0 or faces|length == 0 or heads|length == 0 or skins|length == 0 or items|length == 0 or fronts|length == 0 or backs|length == 0 %}
|
||||
<script>
|
||||
// Server DB lacks necessary info. Maybe importer never got ran for this verison?
|
||||
document.getElementById("name_wear").innerHTML = "Server DB needs upgraded or is not populated with necessary data";
|
||||
</script>
|
||||
{% else %}
|
||||
<script>
|
||||
{% include 'titles/chuni/templates/scripts/collapsibles.js' %}
|
||||
|
||||
@@ -298,5 +304,6 @@ for (const type of types) {
|
||||
// Expand the first collapsible so the user can get the gist of it.
|
||||
Collapsibles.expandFirst();
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock content %}
|
||||
@@ -72,11 +72,11 @@
|
||||
{% if cur_version >= 6 %} <!-- MAP ICON and SYSTEM VOICE introduced in AMAZON -->
|
||||
<tr>
|
||||
<td>Map Icon:</td>
|
||||
<td><div id="map-icon-name">{{ map_icons[profile.mapIconId]["name"] }}</div></td>
|
||||
<td><div id="map-icon-name">{{ map_icons[profile.mapIconId]["name"] if map_icons|length > 0 else "Server DB needs upgraded or is not populated with necessary data" }}</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>System Voice:</td>
|
||||
<td><div id="system-voice-name">{{ system_voices[profile.voiceId]["name"] }}</div></td>
|
||||
<td><div id="system-voice-name">{{ system_voices[profile.voiceId]["name"] if system_voices|length > 0 else "Server DB needs upgraded or is not populated with necessary data" }}</div></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
|
||||
@@ -91,6 +91,12 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if nameplates|length == 0 or characters|length == 0 %}
|
||||
<script>
|
||||
// Server DB lacks necessary info. Maybe importer never got ran for this verison?
|
||||
document.getElementById("name_nameplate").innerHTML = "Server DB needs upgraded or is not populated with necessary data";
|
||||
</script>
|
||||
{% else %}
|
||||
<script>
|
||||
{% include 'titles/chuni/templates/scripts/collapsibles.js' %}
|
||||
|
||||
@@ -252,5 +258,5 @@ for (const type of types) {
|
||||
|
||||
Collapsibles.expandAll();
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user