Fixing premium expire date for users without expiring premiums.

This commit is contained in:
Samuel Clay 2014-05-12 12:09:14 -07:00
parent c8858bd8d4
commit 10ca97e497

View file

@ -147,7 +147,8 @@ _.extend(NEWSBLUR.ReaderAccount.prototype, {
$.make('div', { className: 'NB-block' }, [
$.make('span', { className: 'NB-raquo' }, '»'),
' ',
NEWSBLUR.utils.format_date(NEWSBLUR.Globals.premium_expire)
(NEWSBLUR.Globals.premium_expire && NEWSBLUR.utils.format_date(NEWSBLUR.Globals.premium_expire)),
(!NEWSBLUR.Globals.premium_expire && $.make('b', "Never gonna expire. Congrats!"))
]),
$.make('a', { href: '#', className: 'NB-block NB-account-premium-renew NB-modal-submit-button NB-modal-submit-green' }, 'Change your credit card')
]),