Only show debug toggle in dev mode

This commit is contained in:
TEC 2022-10-17 22:08:17 +08:00
parent aab338ce17
commit 0b468760fb
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 0 deletions

View File

@ -50,11 +50,13 @@
<% end %>
<hr /> <br />
<input type="hidden" name="debug" value="no" />
<% if ENV["GENIE_ENV"] == "dev" %>
<small>
<label for="qn-debug">
<input type="checkbox" id="qn-debug" name="debug" role="switch" value="yes">
Debug
</label>
</small>
<% else "" end %>
</form>
</main>