From 67689438db5a7b1f126c53e769edbfa7c5e7634b Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 13 Dec 2015 11:34:47 +0100 Subject: [PATCH] baculum: Add jobbytes and jobfiles columns in job list --- gui/baculum/protected/Class/Miscellaneous.php | 2 +- gui/baculum/protected/JavaScript/misc.js | 35 ++++++++++++++++++ .../protected/JavaScript/slide-window.js | 1 + gui/baculum/protected/Lang/en/messages.mo | Bin 26001 -> 26027 bytes gui/baculum/protected/Lang/en/messages.po | 3 ++ gui/baculum/protected/Lang/pl/messages.mo | Bin 28067 -> 28096 bytes gui/baculum/protected/Lang/pl/messages.po | 3 ++ gui/baculum/protected/Layouts/Main.tpl | 1 + gui/baculum/protected/Portlets/JobList.php | 7 ++++ gui/baculum/protected/Portlets/JobList.tpl | 8 +++- 10 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 gui/baculum/protected/JavaScript/misc.js diff --git a/gui/baculum/protected/Class/Miscellaneous.php b/gui/baculum/protected/Class/Miscellaneous.php index bb8a7170f6..58fd5d6a50 100644 --- a/gui/baculum/protected/Class/Miscellaneous.php +++ b/gui/baculum/protected/Class/Miscellaneous.php @@ -57,7 +57,7 @@ class Miscellaneous extends TModule { 'e' => array('value' => 'Non-fatal error', 'description' =>'Non-fatal error'), 'f' => array('value' => 'Fatal error', 'description' =>'Fatal error'), 'D' => array('value' => 'Verify Diff.', 'description' =>'Verify Differences'), - 'A' => array('value' => 'Canceled by user', 'description' =>'Canceled by the user'), + 'A' => array('value' => 'Canceled', 'description' =>'Canceled by the user'), 'I' => array('value' => 'Incomplete', 'description' =>'Incomplete Job'), 'F' => array('value' => 'Waiting on FD', 'description' =>'Waiting on the File daemon'), 'S' => array('value' => 'Waiting on SD', 'description' =>'Waiting on the Storage daemon'), diff --git a/gui/baculum/protected/JavaScript/misc.js b/gui/baculum/protected/JavaScript/misc.js new file mode 100644 index 0000000000..7cadf6faf7 --- /dev/null +++ b/gui/baculum/protected/JavaScript/misc.js @@ -0,0 +1,35 @@ +var Units = { + get_decimal_size: function(size) { + var size_unit = 'B'; + var units = ['K', 'M', 'G', 'T', 'P']; + var unit; + var dec_size = size.toString() + ((size > 0 ) ? size_unit : ''); + while(size > 1000) { + size /= 1000; + unit = units.shift(units); + } + if (unit) { + dec_size = size.toFixed(1) + unit + size_unit; + } + return dec_size; + } +} + +var Formatters = { + formatter: [ + {css_class: 'size', format_func: Units.get_decimal_size} + ], + set_formatters: function() { + var elements, formatter, txt; + for (var i = 0; i < this.formatter.length; i++) { + elements = document.getElementsByClassName(this.formatter[i].css_class); + formatter = this.formatter[i].format_func; + for (var i = 0; i < elements.length; i++) { + txt = elements[i].firstChild; + if (txt.nodeType === 3) { + txt.nodeValue = formatter(txt.nodeValue); + } + } + } + } +} diff --git a/gui/baculum/protected/JavaScript/slide-window.js b/gui/baculum/protected/JavaScript/slide-window.js index 5fe8041d3e..03ac2f7d0b 100644 --- a/gui/baculum/protected/JavaScript/slide-window.js +++ b/gui/baculum/protected/JavaScript/slide-window.js @@ -285,6 +285,7 @@ var SlideWindowClass = Class.create({ set_callback_parameter(tr); }.bind(this, tr)); }.bind(this)); + Formatters.set_formatters(); }, isConfigurationOpen: function() { diff --git a/gui/baculum/protected/Lang/en/messages.mo b/gui/baculum/protected/Lang/en/messages.mo index d36075ad158bded119dd0fa4be2eeb8a0f1b355f..6932c35a98845fbb382e407c6dabed0158993a9c 100644 GIT binary patch delta 6464 zcmYk=3shBA9>?*0pxuC@K_|2}8mz4w3bb1t>v zsAua@kMnsli9zspzICjTYWX|R)YGT1OMq>;H zV-~7^F2-V+wX&n#F=hdkE?lU^c-)AExD})DwDlsU6Srd$rl%Q`h(j?0r=bR1f|}3@ z)c37HP5cFWeG6)$+c3hR@-`J^;DGfwszVDZ^{uD@E?A?|-S+<0k*NMtPz#xfp;(3L zw+Pi9-LL6#i_^{a7+#r&8Qy+W3hX|46|_=cBXy2 zji)2;5OX`~FfPMn+<=yPIjADFKLPe<_gB__w4z5{_N@*i% zg0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?MO-=Wk3 zoN*bJxcN!h$(gjip~V(8?@*>wUZQk&=O(3={YtGJXKce&lp&Nx%5F*-FY)5N2#HmgL=EYNC}~SJL*$U=}23jR7xjXS38dX#(v&DuDBb0 zLn%4*&8JjS*VD0_@;qfQ?H{lTccMNKZudY}=VxjqlsZa~(uXs?!;_RpDf1}$gwo%E z(#30C=+n}U`!`+h1>!HaR d$>B3*&oh_t$IY!wu3uW5llA{ShsM4e@f(Yr(5e6c diff --git a/gui/baculum/protected/Lang/en/messages.po b/gui/baculum/protected/Lang/en/messages.po index 12f0a347f5..9ad4847bf2 100644 --- a/gui/baculum/protected/Lang/en/messages.po +++ b/gui/baculum/protected/Lang/en/messages.po @@ -1013,3 +1013,6 @@ msgstr "Add" msgid "Actions" msgstr "Actions" +msgid "Size" +msgstr "Size" + diff --git a/gui/baculum/protected/Lang/pl/messages.mo b/gui/baculum/protected/Lang/pl/messages.mo index 8d8211a1000066412d0404eff131330903b7c924..c80b8320a99a3260ed8066ca11bd3e0cabbd6a1a 100644 GIT binary patch delta 6463 zcmYk=33wL89mnx`NkUEtIp2gNBq0fbBt*yo2?SpP5rF_v1R6y-0th5h%T3j90&p8tt++;Xz@)?tg>mrQVuX=)djme<117>17EW$|ak5M?x_TOsTQ|E z{)oEY3RK{KvFA6V0^Nd94wYS0lz}&_@1X`9L#6%{>H!z5(HUNUPwN2G_*+mD8H-_9 zj~X`{)!&55z$V*%2_2nylZqlfh8p-8F83MpHEKq)I(z3Apk}lbb=_LjT5iG~_$;yt z<}7N7en#z)$Sm*rBx@!r;Jhs3w9d4MjzT)htW!|~SEB-a9F^)9tnXkB?JuzxMr9il zj{{L_UyH37KxJ~a?O%YJ&`Q*OS7kfK%%`%Ej@{UiyH?>b^kYgFZ$L3BfIgUqqioy3 z4`{E!;niREH*I!0uB!pQoN8?0NQA9m4fB{tG4r;(k48ye; zj+;=|KZ|<69*n@ZP}d(pEx|d|gRh{*h2(qVqEYQMWDhtdmx>~~4%=d>cfwTIb`?g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U_Ds-KSb^e2qK^QbKd{hJq98giN`L9J{xk|=Y8 zR!C$M&oxY6EX|pIpae{L;iB+R>q&x&eBM`so_`y_HtJzlx0^l zdWlg0)9h7Bl(M{sMwq6D`+I^vkipT*X{yu`>_B^y{&2S-G1J$_9hq2E;A2i7f;R(f zUwZJC7is6*7ZT&5&)7qs;-&7sM1TK|_WafMNDSj~^e@ovpjFU*puI;M%CUE` zFD=SV_s98)+!B9UY&Uz4Zp`b`)t&4wimqk$3r75im^}9>e{OanGY>FIr~OVlOl!;B zdK`@UB)Q-FGdus}4gUXc6}=#5@RMx%ySnc{bi_6 z6D^goK54WZ+t)ajU+AxsV@tX-S4GQbZXT_IzP?aa(O#hqWBfB#;_IkSgj*2o=KMyl zKW!mRFLEho{D>!L8)$QB`h+pxnby@C8ont_F=Ku7MbX^av;Qz(NH+wR;C|Z6G?%7N nsJ-sLOnnlJ4GU)+=YAW^^p!Worql+SCYOAZ-!x|8wCMi /> /> /> + /> diff --git a/gui/baculum/protected/Portlets/JobList.php b/gui/baculum/protected/Portlets/JobList.php index 3e5e7994ac..93b85b1c58 100644 --- a/gui/baculum/protected/Portlets/JobList.php +++ b/gui/baculum/protected/Portlets/JobList.php @@ -137,5 +137,12 @@ class JobList extends Portlets implements ISlideWindow { } $this->CheckedValues->Value = ""; } + + public function formatJobName($name) { + if (strlen($name) > 25) { + $name = substr($name, 0, 10) . '...' . substr($name, -13); + } + return $name; + } } ?> diff --git a/gui/baculum/protected/Portlets/JobList.tpl b/gui/baculum/protected/Portlets/JobList.tpl index 9c181e4857..53c1fe5daa 100644 --- a/gui/baculum/protected/Portlets/JobList.tpl +++ b/gui/baculum/protected/Portlets/JobList.tpl @@ -35,7 +35,7 @@ /> -
<%=$this->getParent()->Data['name']%>
+
<%=$this->getPage()->JobWindow->formatJobName($this->getParent()->Data['name'])%>
@@ -54,6 +54,12 @@
<%=isset($this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value']) ? $this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value'] : ''%>
+ + +
<%=$this->getParent()->Data['jobbytes']%>
+
+
+ <%=$this->getParent()->Data['endtime']%> -- 2.39.5