gui, api: Indicate running under container (#8728)

This adds a word to the version string when running containerized. The
purpose is mostly to facilitate troubleshooting via screenshot by
"leaking" this rather important aspect of the setup. Additionally, the
version row gets "no-overflow-ellipsis" treatment so that the whole
thing is actually visible in the GUI and the (now useless) tooltip is
removed. In production releases this won't make a difference as the
whole thing will typically fit, but in odd setups it provides more info
up front.
This commit is contained in:
Jakob Borg
2022-12-25 08:08:41 +01:00
committed by GitHub
parent 634a3d0e3b
commit c4e69cd66c
5 changed files with 14 additions and 3 deletions

View File

@@ -720,9 +720,7 @@
</tr>
<tr>
<th><span class="fas fa-fw fa-tag"></span>&nbsp;<span translate>Version</span></th>
<td class="text-right">
<span tooltip data-original-title="{{versionString()}}">{{versionString()}}</span>
</td>
<td class="text-right no-overflow-ellipse">{{versionString()}}</td>
</tr>
</tbody>
</table>

View File

@@ -3079,6 +3079,10 @@ angular.module('syncthing.core')
's390x': '64-bit z/Architecture',
}[$scope.version.arch] || $scope.version.arch;
if ($scope.version.container) {
arch += " Container";
}
return $scope.version.version + ', ' + os + ' (' + arch + ')';
};