introduce empty state for dependency table

fixes #9
This commit is contained in:
Sam Rijs 2018-02-11 16:23:34 +11:00
parent 19f97f917e
commit 5080307d9f

View file

@ -16,6 +16,10 @@ fn dependency_tables(crate_name: CrateName, deps: AnalyzedDependencies) -> Marku
code (crate_name.as_ref()) 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() { @if !deps.main.is_empty() {
(dependency_table("Dependencies", deps.main)) (dependency_table("Dependencies", deps.main))
} }