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}} {{end}}
{{define "version"}} {{define "version"}}
<script>
window.DRONE_VERSION = {{ .version }};
</script>
<meta name="version" content="{{ .version }}"> <meta name="version" content="{{ .version }}">
{{end}} {{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}> <div className={style.brand}>
<DroneIcon /> <DroneIcon />
<p> <p>
Woodpecker<span style="margin-left: 4px;">v0.10.0</span><br /> Woodpecker<span style="margin-left: 4px;">{window.DRONE_VERSION}</span><br />
<span> <span>
<a <a
href="https://github.com/laszlocph/woodpecker/blob/master/docs/usage/pipeline.md" href="https://github.com/laszlocph/woodpecker/blob/master/docs/usage/pipeline.md"