forked from RallyApps/app-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeamBoardCardContentLeft.js
28 lines (24 loc) · 1.18 KB
/
TeamBoardCardContentLeft.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(function() {
var Ext = window.Ext4 || window.Ext;
Ext.define('Rally.apps.teamboard.TeamBoardCardContentLeft', {
alias: 'plugin.rallyteamboardcardcontentleft',
extend: 'Rally.ui.cardboard.plugin.CardContentLeft',
getCardHeader: function(){
var record = this.card.getRecord();
var name = record.get('FirstName') && record.get('LastName') ? record.get('FirstName') + ' ' + record.get('LastName') : record.get('_refObjectName');
var role = record.get('Role') === 'None' ? '' : record.get('Role');
return '<table class="card-header">' +
'<tr>' +
'<td>' +
'<img src="' + Rally.util.User.getProfileImageUrl(40, record.get('_ref')) + '">' +
'</td>' +
'<td class="card-header-spacer"></td>' +
'<td class="card-header-user-info">' +
'<div class="team-member-name">' + Rally.apps.teamboard.TeamBoardUtil.linkToAdminPage(record, name) + '</div>' +
'<div class="team-member-role">' + role + '</div>' +
'</td>' +
'</tr>' +
'</table>';
}
});
})();