diff --git a/Watcher/ViewModels/ServerDetailsViewModel.cs b/Watcher/ViewModels/ServerDetailsViewModel.cs index 58b5633..34047e9 100644 --- a/Watcher/ViewModels/ServerDetailsViewModel.cs +++ b/Watcher/ViewModels/ServerDetailsViewModel.cs @@ -1,5 +1,3 @@ - - using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -28,7 +26,6 @@ public class ServerDetailsViewModel public int CpuCores { get; set; } = 0; public string? GpuType { get; set; } = string.Empty; public double RamSize { get; set; } = 0; - public string? DiskSpace { get; set; } = string.Empty; // Database @@ -39,16 +36,4 @@ public class ServerDetailsViewModel public DateTime LastSeen { get; set; } public Boolean IsVerified { get; set; } = false; - - // Display Properties for View - public string DisplayCpuType => !string.IsNullOrWhiteSpace(CpuType) ? CpuType : "-"; - public string DisplayCpuCores => CpuCores > 0 ? CpuCores.ToString() : "-"; - public string DisplayGpuType => !string.IsNullOrWhiteSpace(GpuType) ? GpuType : "-"; - public string DisplayRamSize => RamSize > 0 ? $"{RamSize} GB" : "-"; - //public string DisplayDiskSpace => !string.IsNullOrWhiteSpace(DiskSpace) ? DiskSpace : "-"; - public string DisplayCreatedAt => CreatedAt.ToLocalTime().ToString("dd.MM.yyyy HH:mm"); - public string DisplayLastSeen => LastSeen.ToLocalTime().ToString("dd.MM.yyyy HH:mm"); - public string StatusBadgeClass => IsOnline ? "bg-success" : "bg-danger"; - public string StatusIcon => IsOnline ? "bi-check-circle" : "bi-x-circle"; - public string StatusText => IsOnline ? "Online" : "Offline"; } \ No newline at end of file diff --git a/Watcher/Views/Server/_ServerCard.cshtml b/Watcher/Views/Server/_ServerCard.cshtml index 7360d85..c1d557b 100644 --- a/Watcher/Views/Server/_ServerCard.cshtml +++ b/Watcher/Views/Server/_ServerCard.cshtml @@ -4,13 +4,12 @@