]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: On restore wizard job list add link to job history for specific jobid
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 25 Jul 2019 19:46:08 +0000 (21:46 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Dec 2019 14:55:27 +0000 (15:55 +0100)
gui/baculum/protected/Web/Lang/en/messages.mo
gui/baculum/protected/Web/Lang/en/messages.po
gui/baculum/protected/Web/Lang/ja/messages.mo
gui/baculum/protected/Web/Lang/ja/messages.po
gui/baculum/protected/Web/Lang/pl/messages.mo
gui/baculum/protected/Web/Lang/pl/messages.po
gui/baculum/protected/Web/Lang/pt/messages.mo
gui/baculum/protected/Web/Lang/pt/messages.po
gui/baculum/protected/Web/Pages/RestoreWizard.page

index 73e95acad5582a87957622eac131c35a3e078cca..b1878a30617b7578b8a18c4d53b06afe6e4d202b 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/en/messages.mo and b/gui/baculum/protected/Web/Lang/en/messages.mo differ
index 22335d92138b1b28f84718e2d9bfefcfb08f5bcd..0a85e8894706a220f5163a3e8d13612826653955 100644 (file)
@@ -2221,3 +2221,6 @@ msgstr "Add directive"
 
 msgid "Go to job with jobid %jobid"
 msgstr "Go to job with jobid %jobid"
+
+msgid "Go to job %job"
+msgstr "Go to job %job"
index dc9329cb5918ca05430436bc66d101e574b348c2..ee5c26e5003fb647a7df122cee45269f8d9beed8 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/ja/messages.mo and b/gui/baculum/protected/Web/Lang/ja/messages.mo differ
index 54540d955f469246f3958f3cbc971ded492b814f..0bf2f2120f4c6eaa3ce6ffba6e31d8f7510dd116 100644 (file)
@@ -2307,3 +2307,6 @@ msgstr "Add directive"
 
 msgid "Go to job with jobid %jobid"
 msgstr "Go to job with jobid %jobid"
+
+msgid "Go to job %job"
+msgstr "Go to job %job"
index 1b17683d12839250f51b42f722f0e6a4f4f65299..8c3c23b8a23b7e23520ff4fd54e71845c6f025aa 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pl/messages.mo and b/gui/baculum/protected/Web/Lang/pl/messages.mo differ
index 12ff1d2ae2b0b19b618caadf8a1eddf6730c7348..338a5d930686c27994b107108730ce896470427e 100644 (file)
@@ -2228,3 +2228,6 @@ msgstr "Dodaj dyrektywę"
 
 msgid "Go to job with jobid %jobid"
 msgstr "Przejdź do zadania z jobid %jobid"
+
+msgid "Go to job %job"
+msgstr "Przejdź do zadania %job"
index e3be77851f3e0de39480232c57a08c220a83534b..d9b0e1719db1219885b76f52ecdd9f39d38f35a2 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pt/messages.mo and b/gui/baculum/protected/Web/Lang/pt/messages.mo differ
index 91bd462e29a1140e998dcf5a5fa99f796913d867..fb06dc2f2efbb63752a3e267d25466660c7e3af2 100644 (file)
@@ -2236,3 +2236,6 @@ msgstr "Add directive"
 
 msgid "Go to job with jobid %jobid"
 msgstr "Go to job with jobid %jobid"
+
+msgid "Go to job %job"
+msgstr "Go to job %job"
index cc95f7d28dcdc46a2be60da89c1accc13fbbc4e0..37d09bc762da0e74c5f21fb34a2bb12dfc464426 100644 (file)
@@ -195,7 +195,16 @@ var oJobsToRestoreList = {
                                },
                                {
                                        data: 'jobid',
-                                       responsivePriority: 1
+                                       responsivePriority: 1,
+                                       render: function(data, type, row) {
+                                               var i = document.createElement('I');
+                                               i.className = 'fa fa-external-link-alt fa-xs';
+                                               var a = document.createElement('A');
+                                               a.href = '/web/job/history/' + data + '/';
+                                               a.appendChild(i);
+                                               a.title = '<%[ Go to job with jobid %jobid ]%>'.replace('%jobid', data);
+                                               return (data + ' ' + a.outerHTML);
+                                       }
                                },
                                {
                                        data: 'name',
@@ -204,9 +213,9 @@ var oJobsToRestoreList = {
                                                var i = document.createElement('I');
                                                i.className = 'fa fa-external-link-alt fa-xs';
                                                var a = document.createElement('A');
-                                               a.href = '/web/job/history/' + row.jobid + '/';
+                                               a.href = '/web/job/' + encodeURIComponent(data) + '/';
                                                a.appendChild(i);
-                                               a.title = '<%[ Go to job with jobid %jobid ]%>'.replace('%jobid', row.jobid);
+                                               a.title = '<%[ Go to job %job ]%>'.replace('%job', data);
                                                return (data + ' ' + a.outerHTML);
                                        }
                                },