From 88e2a058f6a38fe82908adc7f322152ce12c9eba Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Mon, 31 May 2021 08:32:12 +0100 Subject: [PATCH] Reduce clutter in action tables --- src/Website/Views/Admin/ApiKeys.cshtml | 13 +++++++++---- src/Website/Views/Admin/Mailboxes.cshtml | 13 +++++++++---- src/Website/wwwroot/css/style.scss | 14 ++++++++++++-- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/Website/Views/Admin/ApiKeys.cshtml b/src/Website/Views/Admin/ApiKeys.cshtml index 5cd6fef..c49273d 100644 --- a/src/Website/Views/Admin/ApiKeys.cshtml +++ b/src/Website/Views/Admin/ApiKeys.cshtml @@ -11,13 +11,18 @@ @foreach (var apiKey in Model) { - + - - - + @if (apiKey.Enabled) + { + + } + else + { + + } } diff --git a/src/Website/Views/Admin/Mailboxes.cshtml b/src/Website/Views/Admin/Mailboxes.cshtml index 814575e..1d80813 100644 --- a/src/Website/Views/Admin/Mailboxes.cshtml +++ b/src/Website/Views/Admin/Mailboxes.cshtml @@ -9,12 +9,17 @@
@apiKey.Name
@apiKey.Key
Copy@(apiKey.Enabled?"Enabled":"Disabled")EnableDisableDisableEnableDelete
@foreach (var alias in Model) { - + - - - + @if (alias.Active) + { + + } + else + { + + } } diff --git a/src/Website/wwwroot/css/style.scss b/src/Website/wwwroot/css/style.scss index 2995cf8..212ef01 100644 --- a/src/Website/wwwroot/css/style.scss +++ b/src/Website/wwwroot/css/style.scss @@ -235,8 +235,18 @@ table.actions { border-collapse: collapse; width:100%; - tr:hover { - background: $Grey-300; + tr{ + &.green{ + background: $LightGreen-A100; + } + + &.red{ + background: $Red-A100; + } + + &:hover { + background: $Grey-300; + } } td {
@alias.Source @alias.Destination@(alias.Active?"Enabled":"Disabled")EnableDisableDisableEnableDelete