template less code if not logged in

This commit is contained in:
Erikas 2024-07-05 10:52:14 +03:00
parent 3b99d621b8
commit 48516bc2fe

View File

@ -24,7 +24,6 @@
{{if eq .benchmark.UserID .userID }} {{if eq .benchmark.UserID .userID }}
<a class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#exampleModal">Delete benchmark</a> <a class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#exampleModal">Delete benchmark</a>
{{end}}
<div class="modal" id="exampleModal" tabindex="-1"> <div class="modal" id="exampleModal" tabindex="-1">
<div class="modal-dialog"> <div class="modal-dialog">
@ -45,6 +44,7 @@
</div> </div>
</div> </div>
</div> </div>
{{end}}
<div id="fpsChart" style="height:250pt;"></div> <div id="fpsChart" style="height:250pt;"></div>
<div id="frameTimeChart" style="height:250pt;"></div> <div id="frameTimeChart" style="height:250pt;"></div>