Get basic support for GitLab working in the UI

This commit is contained in:
Joseph Schorr 2015-05-03 09:58:48 -07:00
parent e3aededcbc
commit f091aaa07e
4 changed files with 33 additions and 7 deletions

View file

@ -136,6 +136,14 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
'templates': {
'credentials': '/static/directives/trigger/githost/credentials.html',
'trigger-description': '/static/directives/trigger/gitlab/trigger-description.html'
},
'repository_url': function(build) {
return 'https://bitbucket.org/' + build.trigger.build_source;
},
'link_templates': {
'commit': '/commit/{sha}',
'branch': '/tree/{branch}',
'tag': '/commits/{tag}',
}
},
@ -184,7 +192,7 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
}
var repositoryUrl = type.repository_url;
if (!repositoryUrl) {
if (!repositoryUrl || !repositoryUrl(build)) {
return null;
}