Skip to content

Commit

Permalink
Only display Gokapi version in admin view #181
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Jul 13, 2024
1 parent e704904 commit 533993e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/html_admin.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,5 @@



{{ template "footer" }}
{{ template "footer" true}}
{{ end }}
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/html_api.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@
}
});
</script>
{{ template "footer" }}
{{ template "footer" true }}
{{ end }}
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/html_end2end.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@

</script>
{{ end }}
{{template "footer"}}
{{template "footer" true}}
{{end}}
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/html_footer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
</main>

<footer class="mt-auto text-white-50">
<p> Powered by <a href="https://github.com/Forceu/Gokapi" target="_blank" rel="noopener noreferrer">Gokapi v{{template "version"}}</a></p>
<p> Powered by <a href="https://github.com/Forceu/Gokapi" target="_blank" rel="noopener noreferrer">Gokapi {{if eq . true }}v{{template "version"}}{{end}}</a></p>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/html_logs.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
window.location.reload();
}, 30000);
</script>
{{ template "footer" }}
{{ template "footer" true}}
{{ end }}

0 comments on commit 533993e

Please sign in to comment.