diff --git a/app/controllers/account.coffee b/app/controllers/account.coffee index c4c5af45..f060c8da 100644 --- a/app/controllers/account.coffee +++ b/app/controllers/account.coffee @@ -47,4 +47,9 @@ Controller = Ember.ObjectController.extend @config.show_repos_hint == 'public' ) .property() + billingUrl: (-> + id = if @get('model.type') == 'user' then 'user' else @get('model.login') + "#{@get('config').billingEndpoint}/subscriptions/#{id}" + ).property('model.login', 'model.type') + `export default Controller`