X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewSone.html;h=e054122df30ef978c9db7495a486f29a6ff22afc;hb=1128191c63bbd4308d6154e98bfdbea7f0ca3747;hp=af7c8be976e96dcf7400381e8fefba288a34e4be;hpb=ac9fbc286812077feb8a5207448a011727843b80;p=Sone.git diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html index af7c8be..e054122 100644 --- a/src/main/resources/templates/include/viewSone.html +++ b/src/main/resources/templates/include/viewSone.html @@ -2,20 +2,21 @@ function getStatus(soneId) { $.getJSON("ajax/getSoneStatus.ajax", {"sone": soneId}, function(data, textStatus) { - updateStatus(soneId, data.status, data.modified); + updateStatus(soneId, data.status, data.modified, data.lastUpdated); setTimeout(function() { getStatus(soneId); }, 5000); }); } - function updateStatus(soneId, status, modified) { + function updateStatus(soneId, status, modified, lastUpdated) { $("#sone .sone#" + soneId). toggleClass("unknown", status == "unknown"). toggleClass("idle", status == "idle"). toggleClass("inserting", status == "inserting"). toggleClass("downloading", status == "downloading"). toggleClass("modified", modified); + $("#sone .sone#" + soneId + " .last-update span.time").text(lastUpdated); } $(document).ready(function() { @@ -31,7 +32,7 @@
⬊
⬈
✔
-
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">
+
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">
<% sone.requestUri|substring start=4 length=43|html>
<%ifnull ! currentSone>