1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Added Cybozu user link.

This commit is contained in:
Gunther Brunner 2014-06-18 18:57:02 +09:00
parent 71e139ddaf
commit 1ff68d7f87
2 changed files with 1 additions and 12 deletions

View file

@ -74,18 +74,7 @@ module.exports = function DeviceListCtrlDetails($scope, DeviceService, GroupServ
$scope.tableParams.reload()
})
$scope.userContactUrl = function (mail) {
var config = {
hipchatEnabled: true,
hipchatUrl: 'https://cyberagent.hipchat.com/chat?focus_jid='
}
if (config.hipchatEnabled) {
return config.hipchatUrl + mail
} else {
return 'mailto:' + mail
}
}
$scope.tryToKick = function (device) {
var config = {

View file

@ -150,7 +150,7 @@ div.stf-device-list
td(data-title="'Location'|translate", sortable='"provider.name"', filter='{"provider": "text"}')
span {{::device.provider.name}}
td(data-title="'User'|translate", sortable='"owner.name"', filter='{"owner": "text"}')
a(ng-if='device.owner', ng-href='{{userContactUrl(device.owner.email)}}', role='button', target='_href') {{device.owner.name || "No name"}}
a(ng-if='device.owner', ng-href='{{ device.enhancedUserContactUrl }}', role='button', target='_href') {{ device.enhancedUserName }}
a(ng-if='!device.owner') -