From f1f3dffc9721d5e952b8020b5c76995fc80a5174 Mon Sep 17 00:00:00 2001 From: dstrukt Date: Wed, 9 Jun 2021 01:53:24 -0700 Subject: [PATCH] Column improvements quick patch (#2562) * removes title, switches search input with title * adds CSS change * Update BTCPayServer/Views/Server/ListUsers.cshtml Breakpoint improvement Co-authored-by: d11n * Update BTCPayServer/wwwroot/main/site.css Co-authored-by: d11n * github revision fix * spacing * Simplify file details display * Resolve users list conflict * Indent fix * Fix Tor casing Co-authored-by: d11n --- BTCPayServer/Views/Server/Files.cshtml | 25 ++++---- BTCPayServer/Views/Server/ListUsers.cshtml | 13 ----- BTCPayServer/Views/Server/Services.cshtml | 66 +++++++++++----------- 3 files changed, 43 insertions(+), 61 deletions(-) diff --git a/BTCPayServer/Views/Server/Files.cshtml b/BTCPayServer/Views/Server/Files.cshtml index 2d0144b6c..37f3ad809 100644 --- a/BTCPayServer/Views/Server/Files.cshtml +++ b/BTCPayServer/Views/Server/Files.cshtml @@ -72,23 +72,18 @@ else
  • @file.FileName
  • -
  • - + URL: + + @Url.Action("GetFile", "Storage", new + { + fileId = Model.SelectedFileId + }, Context.Request.Scheme, Context.Request.Host.ToString()) +
  • -
  • -
    - Direct Url: - @Model.DirectFileUrl -
    +
  • + Direct URL: + @Model.DirectFileUrl
  • diff --git a/BTCPayServer/Views/Server/ListUsers.cshtml b/BTCPayServer/Views/Server/ListUsers.cshtml index 7aab4b525..4cbf61d0d 100644 --- a/BTCPayServer/Views/Server/ListUsers.cshtml +++ b/BTCPayServer/Views/Server/ListUsers.cshtml @@ -35,19 +35,6 @@ Add User -
    -
    - - -
    - -
    - Add User - - diff --git a/BTCPayServer/Views/Server/Services.cshtml b/BTCPayServer/Views/Server/Services.cshtml index 4fb4ab799..53adcb36b 100644 --- a/BTCPayServer/Views/Server/Services.cshtml +++ b/BTCPayServer/Views/Server/Services.cshtml @@ -5,37 +5,37 @@

    @ViewData["PageTitle"]

    -
    -

    Crypto services exposed by your server

    -
    - - - - - - - - - @foreach (var s in Model.ExternalServices.Where(service => !string.IsNullOrEmpty(service.CryptoCode))) - { - - - - - - } - -
    CryptoAccess TypeActions
    @s.CryptoCode - @s.DisplayName - @if (s.ConnectionString.IsOnion() == true || - (s.ConnectionString.IsOnion() == false && this.Context.Request.IsOnion())) - { - - } - - See information -
    - +
    +

    Crypto services exposed by your server

    + + + + + + + + + + @foreach (var s in Model.ExternalServices.Where(service => !string.IsNullOrEmpty(service.CryptoCode))) + { + + + + + + } + +
    CryptoAccess TypeActions
    @s.CryptoCode + @s.DisplayName + @if (s.ConnectionString.IsOnion() == true || + (s.ConnectionString.IsOnion() == false && Context.Request.IsOnion())) + { + Tor Hidden Service + } + + See information +
    +
    @if (Model.OtherExternalServices.Count != 0 || Model.ExternalServices.Any(service => string.IsNullOrEmpty(service.CryptoCode))) { @@ -76,7 +76,7 @@ @if (Model.TorHttpServices.Count != 0) {
    -

    HTTP-based TOR hidden services

    +

    HTTP-based Tor hidden services

    @@ -103,7 +103,7 @@ @if (Model.TorOtherServices.Count != 0) {
    -

    Other TOR hidden services

    +

    Other Tor hidden services