mirror of https://gitee.com/bigwinds/arangodb
More graceful handling of contributors without e-mail in Aardvark
This commit is contained in:
parent
9e6b031e8b
commit
ce154316b1
|
@ -302,7 +302,11 @@
|
|||
var contributors = '<p class="mount"><span>Contributors:</span>';
|
||||
if (this.model.get('contributors') && this.model.get('contributors').length > 0) {
|
||||
_.each(this.model.get('contributors'), function (contributor) {
|
||||
contributors += '<a href="mailto:' + contributor.email + '">' + contributor.name + '</a>';
|
||||
if (contributor.email) {
|
||||
contributors += '<a href="mailto:' + contributor.email + '">' + (contributor.name || contributor.email) + '</a>';
|
||||
} else if (contributor.name) {
|
||||
contributors += '<a>contributor.name</a>';
|
||||
}
|
||||
});
|
||||
} else {
|
||||
contributors += 'No contributors';
|
||||
|
|
Loading…
Reference in New Issue