{% set urls = [ (url('account.settings'), _('Basic Info'), request.path == url('account.settings')), (url('account.payment'), _('Payment'), request.path.startswith(url('account.payment'))), (url('users.profile', request.user.get_profile().username), _('View Profile'), request.path == url('users.profile', request.user.get_profile().username)), ] %}