From 2d08f97cb6c508a87c24fa8ef6e30aef1daf51a1 Mon Sep 17 00:00:00 2001 From: cuigh Date: Tue, 3 Apr 2018 20:41:03 +0800 Subject: [PATCH] Optimizing page style --- views/index.jet | 66 ++++++++++++++++++++++------------------- views/service/stats.jet | 12 +++++--- 2 files changed, 43 insertions(+), 35 deletions(-) diff --git a/views/index.jet b/views/index.jet index 46518e3..1a6861b 100644 --- a/views/index.jet +++ b/views/index.jet @@ -24,7 +24,7 @@

{{text}}

-

{{count}}

+

{{count}}

@@ -39,6 +39,7 @@ {{end}} {{ block body() }} +{*{{ if !.Charts }}*}
@@ -57,40 +58,43 @@
+{*{{ end }}*} -
- -
- {{yield infobox(style="success", icon="cubes", text=i18n("home.node"), url="/node/", count=.NodeCount)}} - {{yield infobox(style="info", icon="globe", text=i18n("home.network"), url="/network/", count=.NetworkCount)}} - {{yield infobox(style="danger", icon="ticket-alt", text=i18n("home.service"), url="/service/", count=.ServiceCount)}} - {{yield infobox(style="primary", icon="server", text=i18n("home.stack"), url="/stack/task/", count=.StackCount)}} -
-
- +
diff --git a/views/service/stats.jet b/views/service/stats.jet index 2f0e627..98e37db 100644 --- a/views/service/stats.jet +++ b/views/service/stats.jet @@ -80,10 +80,14 @@
- -
-
- +
+ + +