diff --git a/views/label.ejs b/views/label.ejs index cade6cd..71d6b94 100644 --- a/views/label.ejs +++ b/views/label.ejs @@ -34,7 +34,16 @@ - <% categories.forEach((category) => { %> + <% if (!categories.length) { %> + + + This project has no instances. + + + <% + } + categories.forEach((category) => { + %> <%- category.category %> <%- category.count %> @@ -74,7 +83,16 @@ - <% reviewers.forEach((reviewer) => { %> + <% if (!reviewers.length) { %> + + + This project has no reviewers. + + + <% + } + reviewers.forEach((reviewer) => { + %> <%- reviewer.name %> <%- reviewer.count %>