1
0
Fork 0

Rescue the case of missing contributors and authors

This commit is contained in:
Lucas Dohmen 2014-12-13 00:39:18 +01:00 committed by Michael Hackstein
parent 7f74892480
commit a0a04ade13
2 changed files with 6 additions and 0 deletions

View File

@ -6,11 +6,13 @@
idAttribute: '_key',
defaults: {
"author": "Unknown Author",
"title": "",
"version": "Unknown Version",
"mount": "",
"description": "No description",
"license": "Unknown License",
"contributors": [],
"git": "",
"isSystem": false,
"development": false

View File

@ -35,11 +35,15 @@
<dd><%= attributes.author %></dd>
<dt>Contributors</dt>
<dd>
<% if (attributes.contributors.length > 0) { %>
<ul>
<% _.each(attributes.contributors, function (contributor) { %>
<li><a href="mailto:<%= contributor.email %>"><%= contributor.name %></a></li>
<% }); %>
</ul>
<% } else { %>
No contributors
<% } %>
</dd>
</dl>
</aside>