Skip to content

Commit

Permalink
display mismatching schematic galaxy notice
Browse files Browse the repository at this point in the history
  • Loading branch information
cbortz committed Apr 13, 2024
1 parent 13b7ad4 commit 2b44043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions html/schematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def main():
schematic=s,
schematicID=schematicID,
schematicTabList=ghLists.getSchematicTabList(),
selectedGalaxy=galaxy,
siteidCAPTCHA=ghShared.RECAPTCHA_SITEID,
statList=ghLists.getStatList(),
uiTheme=uiTheme,
Expand Down
5 changes: 5 additions & 0 deletions html/templates/schematics.html
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ <h1>Crafting Schematics
{% endif %}

{% if (schematicID != '' and schematicID != 'index' and schematicID != 'home') %}
{% if schematic.schematicID and schematic.galaxy != 0 and schematic.galaxy|string != selectedGalaxy %}
<div class="standOut" style="padding: 10px !important">
You're viewing a schematic for a different galaxy. Some ingredients may not exist your selected galaxy.
</div>
{% endif %}
<h2>{{ schematic.schematicName }}
{% if loggedin == 1 %}
{{ favHTML }}
Expand Down

0 comments on commit 2b44043

Please sign in to comment.