Make version number visible in UI

This commit is contained in:
Laszlo Fogas 2019-11-12 21:42:05 +01:00
parent 8dee34878d
commit 0970d3a971
3 changed files with 27 additions and 20 deletions

View file

@ -96,6 +96,9 @@ const partials = `
{{end}}
{{define "version"}}
<script>
window.DRONE_VERSION = {{ .version }};
</script>
<meta name="version" content="{{ .version }}">
{{end}}

42
web/dist/dist_gen.go vendored

File diff suppressed because one or more lines are too long

View file

@ -168,7 +168,7 @@ const LOGO = (
<div className={style.brand}>
<DroneIcon />
<p>
Woodpecker<span style="margin-left: 4px;">v0.10.0</span><br />
Woodpecker<span style="margin-left: 4px;">{window.DRONE_VERSION}</span><br />
<span>
<a
href="https://github.com/laszlocph/woodpecker/blob/master/docs/usage/pipeline.md"