parent
607f1b07d3
commit
ae0648b8f4
@ -1,15 +1,23 @@
|
|||||||
@using NzbDrone.Core
|
@using NzbDrone.Core
|
||||||
@model IEnumerable<NzbDrone.Core.Repository.RootDir>
|
@model Dictionary<string, ulong>
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@{
|
@{
|
||||||
|
var rootDirString = "";
|
||||||
|
|
||||||
foreach(var rootDir in Model)
|
foreach(var rootDir in Model)
|
||||||
{
|
{
|
||||||
<div class="free-space" title="@rootDir.Path">
|
<div class="free-space" title="@rootDir.Key">
|
||||||
@rootDir.FreeSpace.ToBestFileSize(1) <span>Free</span>
|
@rootDir.Value.ToBestFileSize(1) <span>Free</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
rootDirString += String.Format("{0} - {1} Free\r\n", rootDir.Key, rootDir.Value.ToBestFileSize(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<div id="free-space-small" title="@Html.Encode(rootDirString)">
|
||||||
|
<i class="icon-hdd"></i>
|
||||||
|
</div>
|
||||||
}
|
}
|
Loading…
Reference in new issue