From cc6590257da36bb2029284312acfe92997e0322e Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 Sep 2021 17:02:15 -0400 Subject: [PATCH 1/3] Adds popover alerts to config page. Adds a button to show API key so it's not just out there. --- .../templates/panel/panel_config.html | 48 ++++++++++++++----- app/translations/en_EN.json | 1 + app/translations/fi_FI.json | 1 + app/translations/fr_FR.json | 1 + 4 files changed, 40 insertions(+), 11 deletions(-) diff --git a/app/frontend/templates/panel/panel_config.html b/app/frontend/templates/panel/panel_config.html index 29db621c..920a3e27 100644 --- a/app/frontend/templates/panel/panel_config.html +++ b/app/frontend/templates/panel/panel_config.html @@ -30,10 +30,9 @@
-

Users

-
- Can't see everything on mobile?
Try scrolling the table sideways.
-
+

Users

+ +
  Add New User
@@ -53,7 +52,7 @@ {% for user in data['users'] %} {{ user.username }} - + {% if user.enabled %} Yes @@ -66,15 +65,15 @@ {% end %} - {{ user.api_token }} +
    {% for item in data['auth-servers'][user.user_id] %}
  • {{item}}
  • {% end %}
-
    +
      {% for item in data['user-roles'][user.user_id] %} -
    • {{item}}
    • +
    • {{item}}
    • {% end %} @@ -93,9 +92,7 @@

      Roles

      -
      - Can't see everything on mobile?
      Try scrolling the table sideways.
      -
      +
      @@ -146,17 +143,46 @@
      + + {% end %} {% block js %} + {% end %} \ No newline at end of file diff --git a/app/translations/en_EN.json b/app/translations/en_EN.json index 2d9e8001..368cde3a 100644 --- a/app/translations/en_EN.json +++ b/app/translations/en_EN.json @@ -82,6 +82,7 @@ "nextBackup": "Next:", "servers": "Servers", "cannotSeeOnMobile": "Not seeing everything on mobile?", + "cannotSee": "Not seeing everything?", "cannotSeeOnMobile2": "Try scrolling the table sideways.", "max": "Max", "avg": "Avg", diff --git a/app/translations/fi_FI.json b/app/translations/fi_FI.json index 5d01e14b..24eebb9d 100644 --- a/app/translations/fi_FI.json +++ b/app/translations/fi_FI.json @@ -82,6 +82,7 @@ "nextBackup": "Seuraava:", "servers": "Palvelimet", "cannotSeeOnMobile": "Etkö näe kaikkea mobiililaitteella?", + "cannotSee": "Not seeing everything?", "cannotSeeOnMobile2": "Yritä vierittää taulukkoa sivuttain.", "max": "maks.", "avg": "ka.", diff --git a/app/translations/fr_FR.json b/app/translations/fr_FR.json index 439574b1..7ab93802 100644 --- a/app/translations/fr_FR.json +++ b/app/translations/fr_FR.json @@ -82,6 +82,7 @@ "nextBackup": "Prochain:", "servers": "Serveurs", "cannotSeeOnMobile": "Impossible de tout voir sur mobile ?", + "cannotSee": "Not seeing everything?", "cannotSeeOnMobile2": "Essaie de déplacer le tableau sur le côté.", "max": "Max", "avg": "Moy", From 9b089bc8492e2e7287a65736d10c60771c678a0a Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 Sep 2021 17:03:32 -0400 Subject: [PATCH 2/3] Fixes translations --- app/translations/fi_FI.json | 2 +- app/translations/fr_FR.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/translations/fi_FI.json b/app/translations/fi_FI.json index 24eebb9d..79b1ca07 100644 --- a/app/translations/fi_FI.json +++ b/app/translations/fi_FI.json @@ -82,7 +82,7 @@ "nextBackup": "Seuraava:", "servers": "Palvelimet", "cannotSeeOnMobile": "Etkö näe kaikkea mobiililaitteella?", - "cannotSee": "Not seeing everything?", + "cannotSee": "Etkö näe kaikkea?", "cannotSeeOnMobile2": "Yritä vierittää taulukkoa sivuttain.", "max": "maks.", "avg": "ka.", diff --git a/app/translations/fr_FR.json b/app/translations/fr_FR.json index 7ab93802..f201bd57 100644 --- a/app/translations/fr_FR.json +++ b/app/translations/fr_FR.json @@ -82,7 +82,7 @@ "nextBackup": "Prochain:", "servers": "Serveurs", "cannotSeeOnMobile": "Impossible de tout voir sur mobile ?", - "cannotSee": "Not seeing everything?", + "cannotSee": "Ne pas tout voir?", "cannotSeeOnMobile2": "Essaie de déplacer le tableau sur le côté.", "max": "Max", "avg": "Moy", From 97c74a873f830bd35e43880bfa1c2ca3d591f5c5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 Sep 2021 20:15:29 -0400 Subject: [PATCH 3/3] Fixes show/hide for popovers on dash and on config --- app/frontend/templates/panel/dashboard.html | 15 ++++++++++--- .../templates/panel/panel_config.html | 22 +++++++++++++++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/app/frontend/templates/panel/dashboard.html b/app/frontend/templates/panel/dashboard.html index 68265057..5c8a22b1 100644 --- a/app/frontend/templates/panel/dashboard.html +++ b/app/frontend/templates/panel/dashboard.html @@ -81,9 +81,7 @@

       {{ translate('dashboard', 'allServers') }}

      {% if len(data['servers']) > 0 %} -
      -
      {% end %}
      @@ -226,7 +224,9 @@