From: Marcin Haba Date: Mon, 30 Mar 2015 00:33:39 +0000 (+0200) Subject: baculum: Jobs working refresh in realtime and add new tray bar X-Git-Tag: Release-7.2.0~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ea4f6d275095efa556a3a5807e4ecf3b5911d64;p=bacula%2Fbacula baculum: Jobs working refresh in realtime and add new tray bar --- diff --git a/gui/baculum/protected/JavaScript/slide-window.js b/gui/baculum/protected/JavaScript/slide-window.js index 9e3f499f87..44e1545828 100644 --- a/gui/baculum/protected/JavaScript/slide-window.js +++ b/gui/baculum/protected/JavaScript/slide-window.js @@ -138,6 +138,10 @@ var SlideWindowClass = Class.create({ }.bind(this) }); }, + + isWindowOpen: function() { + return !(this.window.style.display === 'none'); + }, resetSize : function() { if(this.isConfigurationOpen()) { diff --git a/gui/baculum/protected/Lang/en/messages.mo b/gui/baculum/protected/Lang/en/messages.mo index 5b75739980..6bf2bb9bfb 100644 Binary files a/gui/baculum/protected/Lang/en/messages.mo and b/gui/baculum/protected/Lang/en/messages.mo differ diff --git a/gui/baculum/protected/Lang/en/messages.po b/gui/baculum/protected/Lang/en/messages.po index a2457c4895..22242be45d 100644 --- a/gui/baculum/protected/Lang/en/messages.po +++ b/gui/baculum/protected/Lang/en/messages.po @@ -1003,3 +1003,10 @@ msgstr "Verify by JobId" msgid "Verify option:" msgstr "Verify option:" + +msgid "Running jobs:" +msgstr "Running jobs:" + +msgid "Finished jobs:" +msgstr "Finished jobs:" + diff --git a/gui/baculum/protected/Lang/pl/messages.mo b/gui/baculum/protected/Lang/pl/messages.mo index f05d48bc1e..417ecba3fa 100644 Binary files a/gui/baculum/protected/Lang/pl/messages.mo and b/gui/baculum/protected/Lang/pl/messages.mo differ diff --git a/gui/baculum/protected/Lang/pl/messages.po b/gui/baculum/protected/Lang/pl/messages.po index b0d5575c49..9cccbab7d3 100644 --- a/gui/baculum/protected/Lang/pl/messages.po +++ b/gui/baculum/protected/Lang/pl/messages.po @@ -1005,3 +1005,9 @@ msgstr "Weryfikuj na podstawie JobId" msgid "Verify option:" msgstr "Opcja weryfikacji:" +msgid "Running jobs:" +msgstr "Uruchomione zadania:" + +msgid "Finished jobs:" +msgstr "Zakończone zadania:" + diff --git a/gui/baculum/protected/Pages/Home.page b/gui/baculum/protected/Pages/Home.page index 6660973a4f..75341c00e8 100644 --- a/gui/baculum/protected/Pages/Home.page +++ b/gui/baculum/protected/Pages/Home.page @@ -9,6 +9,7 @@ +
@@ -126,8 +132,27 @@ - +
+ + +
<%[ Console status ]%>
diff --git a/gui/baculum/protected/Portlets/JobList.tpl b/gui/baculum/protected/Portlets/JobList.tpl index d7ccc5dd7d..7e20d226e9 100644 --- a/gui/baculum/protected/Portlets/JobList.tpl +++ b/gui/baculum/protected/Portlets/JobList.tpl @@ -65,6 +65,7 @@ ConfigurationWindow.getObj('JobWindow').show(); ConfigurationWindow.getObj('JobWindow').progress(false); + status_callback_func(); diff --git a/gui/baculum/protected/Portlets/JobRunConfiguration.tpl b/gui/baculum/protected/Portlets/JobRunConfiguration.tpl index e0500c994d..44e948a155 100644 --- a/gui/baculum/protected/Portlets/JobRunConfiguration.tpl +++ b/gui/baculum/protected/Portlets/JobRunConfiguration.tpl @@ -133,7 +133,7 @@
- + diff --git a/gui/baculum/protected/Portlets/TrayBar.php b/gui/baculum/protected/Portlets/TrayBar.php new file mode 100644 index 0000000000..8a19981c92 --- /dev/null +++ b/gui/baculum/protected/Portlets/TrayBar.php @@ -0,0 +1,25 @@ + + + <%[ Running jobs: ]%> <%[ Running jobs: ]%> + <%[ Finished jobs: ]%> <%[ Finished jobs: ]%> +
+ diff --git a/gui/baculum/protected/application.xml b/gui/baculum/protected/application.xml index bf154c9bd4..d6438c8e46 100644 --- a/gui/baculum/protected/application.xml +++ b/gui/baculum/protected/application.xml @@ -14,6 +14,7 @@ + diff --git a/gui/baculum/themes/Baculum-v1/check-icon.png b/gui/baculum/themes/Baculum-v1/check-icon.png new file mode 100644 index 0000000000..004d3b5b1b Binary files /dev/null and b/gui/baculum/themes/Baculum-v1/check-icon.png differ diff --git a/gui/baculum/themes/Baculum-v1/gearwheel-icon.png b/gui/baculum/themes/Baculum-v1/gearwheel-icon.png new file mode 100644 index 0000000000..f410812296 Binary files /dev/null and b/gui/baculum/themes/Baculum-v1/gearwheel-icon.png differ diff --git a/gui/baculum/themes/Baculum-v1/style.css b/gui/baculum/themes/Baculum-v1/style.css index 28867b6b11..09a41ac597 100644 --- a/gui/baculum/themes/Baculum-v1/style.css +++ b/gui/baculum/themes/Baculum-v1/style.css @@ -113,7 +113,7 @@ a:hover { z-index: 100; } -#directors, #panel_switcher { +#directors, #panel_switcher, #tray_bar { float: right; font-size: 12px; } @@ -129,6 +129,20 @@ a:hover { font-weight: bold; } +#tray_bar { + margin: 2px 30px 2px 0; +} + +#tray_bar img { + float: none; + margin: 0; + padding: auto 12px; +} + +#tray_bar span{ + font-size: 14px; +} + div.configuration { width: 45%; height: 575px;