feat(plugins/notable): add support for plugin_notable_from to display contributions from repositories hosted by user accounts (#560)

This commit is contained in:
Simon Lecoq
2021-10-08 17:12:42 -04:00
committed by GitHub
parent 67da0b8c0f
commit 75be173cc1
5 changed files with 37 additions and 18 deletions

View File

@@ -16,10 +16,10 @@
<% } else { %>
<% if (plugins.notable.contributions.length) { %>
<div class="row organization contributions">
<% for (const {name, avatar} of plugins.notable.contributions) { %>
<% for (const {name, avatar, organization} of plugins.notable.contributions) { %>
<div class="organization contribution">
<img class="organization avatar" src="<%= avatar %>" width="16" height="16" />
<span class="organization name">@<%= name %></span>
<img class="<%= organization ? "organization" : "" %> avatar" src="<%= avatar %>" width="16" height="16" />
<span class="name">@<%= name %></span>
</div>
<% } %>
</div>