From 649feab3df21e9c05f4e5558fc42429df4f54e63 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Sat, 4 Sep 2021 09:45:43 +0200 Subject: [PATCH] feat(plugins/notable): display empty message when contribution empty (#516) [skip ci] --- source/templates/classic/partials/notable.ejs | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/source/templates/classic/partials/notable.ejs b/source/templates/classic/partials/notable.ejs index 0671aaa1..78e8e2fe 100644 --- a/source/templates/classic/partials/notable.ejs +++ b/source/templates/classic/partials/notable.ejs @@ -14,14 +14,26 @@ <% } else { %> -
- <% for (const {name, avatar} of plugins.notable.contributions) { %> -
- - @<%= name %> -
- <% } %> -
+ <% if (plugins.notable.contributions.length) { %> +
+ <% for (const {name, avatar} of plugins.notable.contributions) { %> +
+ + @<%= name %> +
+ <% } %> +
+ <% } else { %> +
+
+
+ + No recent contributions in organization repositories found +
+
+
+ <% } %> + <% } %> <% } %>