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',
|
idAttribute: '_key',
|
||||||
|
|
||||||
defaults: {
|
defaults: {
|
||||||
|
"author": "Unknown Author",
|
||||||
"title": "",
|
"title": "",
|
||||||
"version": "Unknown Version",
|
"version": "Unknown Version",
|
||||||
"mount": "",
|
"mount": "",
|
||||||
"description": "No description",
|
"description": "No description",
|
||||||
"license": "Unknown License",
|
"license": "Unknown License",
|
||||||
|
"contributors": [],
|
||||||
"git": "",
|
"git": "",
|
||||||
"isSystem": false,
|
"isSystem": false,
|
||||||
"development": false
|
"development": false
|
||||||
|
|
|
@ -35,11 +35,15 @@
|
||||||
<dd><%= attributes.author %></dd>
|
<dd><%= attributes.author %></dd>
|
||||||
<dt>Contributors</dt>
|
<dt>Contributors</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
<% if (attributes.contributors.length > 0) { %>
|
||||||
<ul>
|
<ul>
|
||||||
<% _.each(attributes.contributors, function (contributor) { %>
|
<% _.each(attributes.contributors, function (contributor) { %>
|
||||||
<li><a href="mailto:<%= contributor.email %>"><%= contributor.name %></a></li>
|
<li><a href="mailto:<%= contributor.email %>"><%= contributor.name %></a></li>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</ul>
|
</ul>
|
||||||
|
<% } else { %>
|
||||||
|
No contributors
|
||||||
|
<% } %>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
Loading…
Reference in New Issue