From 5080307d9facc0ce2b89347a881acaf0f5986f9c Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Sun, 11 Feb 2018 16:23:34 +1100 Subject: [PATCH] introduce empty state for dependency table fixes #9 --- src/server/views/html/status.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/views/html/status.rs b/src/server/views/html/status.rs index 9605424..05653f2 100644 --- a/src/server/views/html/status.rs +++ b/src/server/views/html/status.rs @@ -16,6 +16,10 @@ fn dependency_tables(crate_name: CrateName, deps: AnalyzedDependencies) -> Marku code (crate_name.as_ref()) } + @if deps.main.is_empty() && deps.dev.is_empty() && deps.build.is_empty() { + p class="notification has-text-centered" "No dependencies! 🎉" + } + @if !deps.main.is_empty() { (dependency_table("Dependencies", deps.main)) }