mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 03:26:30 +00:00
9 lines
243 B
HTML
9 lines
243 B
HTML
|
|
<script>
|
|
window.ENV = {};
|
|
window.ENV.server = window.location.protocol+"//"+window.location.host;
|
|
{{ if .csrf }}window.ENV.csrf = "{{ .csrf }}"{{ end }}
|
|
{{ if .user }}
|
|
window.USER = {{ json .user }};
|
|
{{ end }}
|
|
</script>
|