Add version info to GUI (fixes #41)
This commit is contained in:
parent
2ea3558283
commit
01096fff6c
3
build.sh
3
build.sh
|
@ -11,7 +11,8 @@ fi
|
||||||
if [[ -z $1 ]] ; then
|
if [[ -z $1 ]] ; then
|
||||||
go build -ldflags "-X main.Version $version"
|
go build -ldflags "-X main.Version $version"
|
||||||
elif [[ $1 == "embed" ]] ; then
|
elif [[ $1 == "embed" ]] ; then
|
||||||
embedder main gui > gui.files.go
|
embedder main gui > gui.files.go \
|
||||||
|
&& go build -ldflags "-X main.Version $version"
|
||||||
elif [[ $1 == "tar" ]] ; then
|
elif [[ $1 == "tar" ]] ; then
|
||||||
go build -ldflags "-X main.Version $version" \
|
go build -ldflags "-X main.Version $version" \
|
||||||
&& mkdir syncthing-dist \
|
&& mkdir syncthing-dist \
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -100,7 +100,11 @@ html, body {
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="(node, address) in config.nodes" ng-class="{'text-primary': !!connections[node], 'text-muted': node == config.myID}">
|
<tr ng-repeat="(node, address) in config.nodes" ng-class="{'text-primary': !!connections[node], 'text-muted': node == config.myID}">
|
||||||
<td><abbr class="text-monospace" title="{{node}}">{{node | short}}</abbr></td>
|
<td><span class="text-monospace">{{node | short}}</span></td>
|
||||||
|
<td>
|
||||||
|
<span ng-show="node != config.myID">{{connections[node].ClientVersion}}</span>
|
||||||
|
<span ng-show="node == config.myID">{{version}}</span>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span ng-show="node == config.myID">
|
<span ng-show="node == config.myID">
|
||||||
<span class="glyphicon glyphicon-ok"></span>
|
<span class="glyphicon glyphicon-ok"></span>
|
||||||
|
|
Loading…
Reference in New Issue