Skip to content

Commit

Permalink
Removes free bytes column from datatables
Browse files Browse the repository at this point in the history
Because of compression it does not really make sense to show
how many bytes are free on a volume.
  • Loading branch information
fbergkemper committed May 19, 2016
1 parent 3d43771 commit 8aca88f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
10 changes: 1 addition & 9 deletions module/Media/view/media/media/details.phtml
Expand Up @@ -60,7 +60,6 @@ $this->headTitle($title);
<th><?php echo $this->translate("Retention/Expiration"); ?></th>
<th><?php echo $this->translate("Maximum bytes"); ?></div></th>
<th><?php echo $this->translate("Current bytes"); ?></div></th>
<th><?php echo $this->translate("Free bytes"); ?></div></th>
</thead>

</table>
Expand Down Expand Up @@ -298,7 +297,6 @@ $(document).ready(function() {
{ "data": null },
{ "type": "file-size", "data": "maxvolbytes" },
{ "type": "file-size", "data": "volbytes" },
{ "type": "file-size", "data": null },
{ "data": "lastwritten" }
],
"columnDefs": [
Expand All @@ -310,7 +308,7 @@ $(document).ready(function() {
},
{
"targets": 4,
"orderData": 10,
"orderData": 9,
"render": function(data, type, full, meta) {
return formatLastWritten(data);
}
Expand All @@ -335,12 +333,6 @@ $(document).ready(function() {
},
{
"targets": 9,
"render": function(data, type, full, meta) {
return formatFreeBytes(data.maxvolbytes, data.volbytes);
}
},
{
"targets": 10,
"visible": false,
"searchable": false
}
Expand Down
10 changes: 1 addition & 9 deletions module/Media/view/media/media/index.phtml
Expand Up @@ -60,7 +60,6 @@ $this->headTitle($title);
<th><?php echo $this->translate("Retention/Expiration"); ?></th>
<th><?php echo $this->translate("Maximum bytes"); ?></div></th>
<th><?php echo $this->translate("Current bytes"); ?></div></th>
<th><?php echo $this->translate("Free bytes"); ?></div></th>
</thead>

</table>
Expand Down Expand Up @@ -169,7 +168,6 @@ $(document).ready(function() {
{ "data": null },
{ "type": "file-size", "data": "maxvolbytes" },
{ "type": "file-size", "data": "volbytes" },
{ "type": "file-size", "data": null },
{ "data": "lastwritten" }
],
"columnDefs": [
Expand All @@ -181,7 +179,7 @@ $(document).ready(function() {
},
{
"targets": 4,
"orderData": 10,
"orderData": 9,
"render": function(data, type, full, meta) {
return formatLastWritten(data);
}
Expand All @@ -206,12 +204,6 @@ $(document).ready(function() {
},
{
"targets": 9,
"render": function(data, type, full, meta) {
return formatFreeBytes(data.maxvolbytes, data.volbytes);
}
},
{
"targets": 10,
"visible": false,
"searchable": false
}
Expand Down
10 changes: 1 addition & 9 deletions module/Pool/view/pool/pool/details.phtml
Expand Up @@ -92,7 +92,6 @@ $this->headTitle($title);
<th><?php echo $this->translate("Retention/Expiration"); ?></th>
<th><?php echo $this->translate("Maximum bytes"); ?></th>
<th><?php echo $this->translate("Current bytes"); ?></th>
<th><?php echo $this->translate("Free bytes"); ?></th>
</thead>

</table>
Expand Down Expand Up @@ -213,7 +212,6 @@ $(document).ready(function() {
{ "data": null },
{ "data": "maxvolbytes", "type": "file-size" },
{ "data": "volbytes", "type": "file-size" },
{ "data": null, "type": "file-size" },
{ "data": "lastwritten" }
],
"paging": true,
Expand All @@ -231,7 +229,7 @@ $(document).ready(function() {
},
{
"targets": 4,
"orderData": 10,
"orderData": 9,
"render": function(data, type, full, meta) {
return formatLastWritten(data);
}
Expand All @@ -256,12 +254,6 @@ $(document).ready(function() {
},
{
"targets": 9,
"render": function(data, type, full, meta) {
return formatFreeBytes(data.maxvolbytes, data.volbytes);
}
},
{
"targets": 10,
"visible": false,
"searchable": false
}
Expand Down

0 comments on commit 8aca88f

Please sign in to comment.