From a9222e88ae77a7cd6c00dd45bcceff71b61e47d5 Mon Sep 17 00:00:00 2001 From: dbddhkpde <37509447+dbddhkpde@users.noreply.github.com> Date: Sun, 25 Mar 2018 20:49:10 +0200 Subject: [PATCH] GUI-Extension progress bar, icons and show/hide logic Extend the GUI with a small progress bar within the backup job "details": - add current action - change the icon of the active job (paused, running) - show / hide the GUI-extension (progress bar, filename, action) only if page-event contains a current filename --- .../Server/webroot/ngax/templates/home.html | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/ngax/templates/home.html b/Duplicati/Server/webroot/ngax/templates/home.html index 2875e76e9..da18f9ba3 100644 --- a/Duplicati/Server/webroot/ngax/templates/home.html +++ b/Duplicati/Server/webroot/ngax/templates/home.html @@ -2,7 +2,11 @@
- {{item.Backup.Name}} + + + + + {{item.Backup.Name}} @@ -61,6 +65,20 @@
{{item.Backup.Metadata.TargetSizeString}} / {{$count}} Version
+
+
Current action:
+
{{state.lastPgEvent.Phase}}
+
Progress:
+
+
+
+ {{(1 - (state.lastPgEvent.CurrentFilesize - state.lastPgEvent.CurrentFileoffset) / state.lastPgEvent.CurrentFilesize) * 100 | number:2}}% +
+
+
+
Current file:
+
{{state.lastPgEvent.CurrentFilename}}
+