mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Move the "Last seen" field to the very top in the device information. This way, if a device has disconnected unexpectly, we can quickly check the time when it was last available. Right now, due to the very long address field, it is usually necessary to scroll down in order to view the "Last seen" field. Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
parent
c18dc6a629
commit
9caaaa49b6
@ -708,6 +708,11 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-condensed table-striped table-auto">
|
<table class="table table-condensed table-striped table-auto">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr ng-if="!connections[deviceCfg.deviceID].connected">
|
||||||
|
<th><span class="fas fa-fw fa-eye"></span> <span translate>Last seen</span></th>
|
||||||
|
<td translate ng-if="!deviceStats[deviceCfg.deviceID].lastSeenDays || deviceStats[deviceCfg.deviceID].lastSeenDays >= 365" class="text-right">Never</td>
|
||||||
|
<td ng-if="deviceStats[deviceCfg.deviceID].lastSeenDays < 365" class="text-right">{{deviceStats[deviceCfg.deviceID].lastSeen | date:"yyyy-MM-dd HH:mm:ss"}}</td>
|
||||||
|
</tr>
|
||||||
<tr ng-if="connections[deviceCfg.deviceID].connected">
|
<tr ng-if="connections[deviceCfg.deviceID].connected">
|
||||||
<th><span class="fas fa-fw fa-cloud-download-alt"></span> <span translate>Download Rate</span></th>
|
<th><span class="fas fa-fw fa-cloud-download-alt"></span> <span translate>Download Rate</span></th>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
@ -793,11 +798,6 @@
|
|||||||
<th><span class="fas fa-fw fa-tag"></span> <span translate>Version</span></th>
|
<th><span class="fas fa-fw fa-tag"></span> <span translate>Version</span></th>
|
||||||
<td class="text-right">{{connections[deviceCfg.deviceID].clientVersion}}</td>
|
<td class="text-right">{{connections[deviceCfg.deviceID].clientVersion}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="!connections[deviceCfg.deviceID].connected">
|
|
||||||
<th><span class="fas fa-fw fa-eye"></span> <span translate>Last seen</span></th>
|
|
||||||
<td translate ng-if="!deviceStats[deviceCfg.deviceID].lastSeenDays || deviceStats[deviceCfg.deviceID].lastSeenDays >= 365" class="text-right">Never</td>
|
|
||||||
<td ng-if="deviceStats[deviceCfg.deviceID].lastSeenDays < 365" class="text-right">{{deviceStats[deviceCfg.deviceID].lastSeen | date:"yyyy-MM-dd HH:mm:ss"}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr ng-if="deviceFolders(deviceCfg).length > 0">
|
<tr ng-if="deviceFolders(deviceCfg).length > 0">
|
||||||
<th><span class="fas fa-fw fa-folder"></span> <span translate>Folders</span></th>
|
<th><span class="fas fa-fw fa-folder"></span> <span translate>Folders</span></th>
|
||||||
<td class="text-right" ng-attr-title="{{deviceFolders(deviceCfg).map(folderLabel).join(', ')}}">{{deviceFolders(deviceCfg).map(folderLabel).join(", ")}}</td>
|
<td class="text-right" ng-attr-title="{{deviceFolders(deviceCfg).map(folderLabel).join(', ')}}">{{deviceFolders(deviceCfg).map(folderLabel).join(", ")}}</td>
|
||||||
|
@ -720,6 +720,11 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-condensed table-striped table-auto">
|
<table class="table table-condensed table-striped table-auto">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr ng-if="!connections[deviceCfg.deviceID].connected">
|
||||||
|
<th><span class="fas fa-fw fa-eye"></span> <span translate>Last seen</span></th>
|
||||||
|
<td translate ng-if="!deviceStats[deviceCfg.deviceID].lastSeenDays || deviceStats[deviceCfg.deviceID].lastSeenDays >= 365" class="text-right">Never</td>
|
||||||
|
<td ng-if="deviceStats[deviceCfg.deviceID].lastSeenDays < 365" class="text-right">{{deviceStats[deviceCfg.deviceID].lastSeen | date:"yyyy-MM-dd HH:mm:ss"}}</td>
|
||||||
|
</tr>
|
||||||
<tr ng-if="connections[deviceCfg.deviceID].connected">
|
<tr ng-if="connections[deviceCfg.deviceID].connected">
|
||||||
<th><span class="fas fa-fw fa-cloud-download-alt"></span> <span translate>Download Rate</span></th>
|
<th><span class="fas fa-fw fa-cloud-download-alt"></span> <span translate>Download Rate</span></th>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
@ -805,11 +810,6 @@
|
|||||||
<th><span class="fas fa-fw fa-tag"></span> <span translate>Version</span></th>
|
<th><span class="fas fa-fw fa-tag"></span> <span translate>Version</span></th>
|
||||||
<td class="text-right">{{connections[deviceCfg.deviceID].clientVersion}}</td>
|
<td class="text-right">{{connections[deviceCfg.deviceID].clientVersion}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="!connections[deviceCfg.deviceID].connected">
|
|
||||||
<th><span class="fas fa-fw fa-eye"></span> <span translate>Last seen</span></th>
|
|
||||||
<td translate ng-if="!deviceStats[deviceCfg.deviceID].lastSeenDays || deviceStats[deviceCfg.deviceID].lastSeenDays >= 365" class="text-right">Never</td>
|
|
||||||
<td ng-if="deviceStats[deviceCfg.deviceID].lastSeenDays < 365" class="text-right">{{deviceStats[deviceCfg.deviceID].lastSeen | date:"yyyy-MM-dd HH:mm:ss"}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr ng-if="deviceFolders(deviceCfg).length > 0">
|
<tr ng-if="deviceFolders(deviceCfg).length > 0">
|
||||||
<th><span class="fas fa-fw fa-folder"></span> <span translate>Folders</span></th>
|
<th><span class="fas fa-fw fa-folder"></span> <span translate>Folders</span></th>
|
||||||
<td class="text-right" ng-attr-title="{{deviceFolders(deviceCfg).map(folderLabel).join(', ')}}">{{deviceFolders(deviceCfg).map(folderLabel).join(", ")}}</td>
|
<td class="text-right" ng-attr-title="{{deviceFolders(deviceCfg).map(folderLabel).join(', ')}}">{{deviceFolders(deviceCfg).map(folderLabel).join(", ")}}</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user