mirror of https://gitee.com/bigwinds/arangodb
Rescue the case of missing contributors and authors
This commit is contained in:
parent
7f74892480
commit
a0a04ade13
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue