'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'),
--- /dev/null
+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);
+ }
+ }
+ }
+ }
+}
set_callback_parameter(tr);
}.bind(this, tr));
}.bind(this));
+ Formatters.set_formatters();
},
isConfigurationOpen: function() {
msgid "Actions"
msgstr "Actions"
+msgid "Size"
+msgstr "Size"
+
msgid "Actions"
msgstr "Akcje"
+msgid "Size"
+msgstr "Rozmiar"
+
<com:TClientScript ScriptUrl=<%~ ../JavaScript/panel-window.js %> />
<com:TClientScript ScriptUrl=<%~ ../JavaScript/flotr2.js %> />
<com:TClientScript ScriptUrl=<%~ ../JavaScript/graph.js %> />
+ <com:TClientScript ScriptUrl=<%~ ../JavaScript/misc.js %> />
<com:TContentPlaceHolder ID="Main" />
</com:TForm>
</body>
}
$this->CheckedValues->Value = "";
}
+
+ public function formatJobName($name) {
+ if (strlen($name) > 25) {
+ $name = substr($name, 0, 10) . '...' . substr($name, -13);
+ }
+ return $name;
+ }
}
?>
/>
<com:TActiveTemplateColumn HeaderText="<%[ Job name ]%>" SortExpression="name">
<prop:ItemTemplate>
- <div><%=$this->getParent()->Data['name']%></div>
+ <div title="<%=$this->getParent()->Data['name']%>"><%=$this->getPage()->JobWindow->formatJobName($this->getParent()->Data['name'])%></div>
<input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['jobid']%>" />
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
<div class="job-status-<%=isset($this->getParent()->Data['jobstatus']) ? $this->getParent()->Data['jobstatus'] : ''%>" title="<%=isset($this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['description']) ? $this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['description'] : ''%>"><%=isset($this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value']) ? $this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value'] : ''%></div>
</prop:ItemTemplate>
</com:TActiveTemplateColumn>
+ <com:TActiveTemplateColumn HeaderText="<%[ Size ]%>" SortExpression="jobbytes">
+ <prop:ItemTemplate>
+ <div class="size"><%=$this->getParent()->Data['jobbytes']%></div>
+ </prop:ItemTemplate>
+ </com:TActiveTemplateColumn>
+ <com:TActiveBoundColumn SortExpression="jobfiles" HeaderText="<%[ Files ]%>" DataField="jobfiles" />
<com:TActiveTemplateColumn HeaderText="<%[ End time ]%>" SortExpression="endtime">
<prop:ItemTemplate>
<%=$this->getParent()->Data['endtime']%>