mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 13:09:58 -06:00
48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
Menu="Shares:2"
|
|
Title="Disk Shares"
|
|
Tag="user-circle-o"
|
|
Cond="$var['fsState']!='Stopped' && $var['shareDisk']!='no'"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2022, Lime Technology
|
|
* Copyright 2012-2022, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<script>
|
|
function displayDisks(all) {
|
|
if (all == 'yes') {
|
|
$.cookie('ssz','ssz');
|
|
$('#disk_list').html("<tr><td colspan='8'><div class='spinner'></div></td></tr>");
|
|
$('div.spinner').html(unraid_logo);
|
|
}
|
|
$.get('/webGui/include/DiskList.php',{compute:all,path:'<?=$path?>',scale:'<?=$display['scale']?>',number:'<?=$display['number']?>',fill:$.cookie('ssz')},function(data){
|
|
$.removeCookie('ssz')
|
|
$('#disk_list').html(data);
|
|
$('#compute-disks').prop('disabled',!data || data.indexOf('colspan=')!=-1);
|
|
});
|
|
}
|
|
$(function() {
|
|
displayDisks('no');
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
table.share_status thead tr td:first-child{width:15%}
|
|
table.share_status thead tr td:nth-child(n+3){width:10%}
|
|
</style>
|
|
|
|
<table class="share_status">
|
|
<thead><tr><td>_(Name)_</td><td>_(Comment)_</td><td>_(SMB)_</td><td>_(NFS)_</td><td>_(Type)_</td><td>_(Size)_</td><td>_(Free)_</td></tr></thead>
|
|
<tbody id="disk_list"></tbody>
|
|
</table>
|
|
<p><input id="compute-disks" type="button" value="_(Compute All)_" onclick="$(this).prop('disabled',true);displayDisks('yes')"></p>
|
|
|
|
:disk_list_help:
|