Display Last Seen value in the UI

This commit is contained in:
Audrius Butkevicius
2014-08-22 20:35:22 +01:00
parent 84c6f147ad
commit c66b24feeb
3 changed files with 23 additions and 2 deletions

View File

@@ -342,6 +342,11 @@
<th><span class="glyphicon glyphicon-tag"></span>&emsp;<span translate>Version</span></th>
<td class="text-right">{{nodeVer(nodeCfg)}}</td>
</tr>
<tr ng-if="!connections[nodeCfg.NodeID]">
<th><span class="glyphicon glyphicon-eye-open"></span>&emsp;<span translate>Last seen</span></th>
<td translate ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') > -1" class="text-right">Never</td>
<td ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') < 0" class="text-right">{{stats[nodeCfg.NodeID].LastSeen | asDate | date:'short'}}</td>
</tr>
</tbody>
</table>
</div>