Commit 3ebd5476 authored by Mark Chao's avatar Mark Chao

Fix partial to not display empty li

parent 16f98f5c
...@@ -8,30 +8,29 @@ ...@@ -8,30 +8,29 @@
= link_to card_match_admin_user_path(@user) do = link_to card_match_admin_user_path(@user) do
= _('other card matches') = _('other card matches')
%ul.content-list %ul.content-list
- if credit_card_validation.nil? %li#credit-card-status
%li#credit-card-status - if credit_card_validation.nil?
%span.light= _('Validated:') %span.light= _('Validated:')
%strong= _('No') %strong= _('No')
- else - else
%li
- if credit_card_validation.holder_name
%span.light= _('Holder name:')
%strong
= credit_card_validation.holder_name
%li#credit-card-status
%span.light= _('Validated at:') %span.light= _('Validated at:')
%strong %strong
= credit_card_validation.credit_card_validated_at.to_s(:medium) = credit_card_validation.credit_card_validated_at.to_s(:medium)
- if credit_card_validation.holder_name
%li %li
- if credit_card_validation.last_digits %span.light= _('Holder name:')
%span.light= _('Card number:') %strong
%strong = credit_card_validation.holder_name
= credit_card_validation.last_digits.to_s.rjust(4, '0')
- if credit_card_validation.last_digits
%li %li
- if credit_card_validation.expiration_date %span.light= _('Card number:')
%span.light= _('Expiration date:') %strong
%strong = credit_card_validation.last_digits.to_s.rjust(4, '0')
= credit_card_validation.expiration_date
- if credit_card_validation.expiration_date
%li
%span.light= _('Expiration date:')
%strong
= credit_card_validation.expiration_date
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment