1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 10:19:41 +00:00
Radarr/NzbDrone.Web/Views/Shared/FreeSpace.cshtml
Mark McDowall ae0648b8f4 Free space widgets
Fixed: Free space widgets take up less space on smaller screens
2012-12-23 23:16:43 -08:00

23 lines
No EOL
524 B
Text

@using NzbDrone.Core
@model Dictionary<string, ulong>
@{
Layout = null;
}
@{
var rootDirString = "";
foreach(var rootDir in Model)
{
<div class="free-space" title="@rootDir.Key">
@rootDir.Value.ToBestFileSize(1) <span>Free</span>
</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>
}