Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3ebd5476
Commit
3ebd5476
authored
Oct 13, 2021
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix partial to not display empty li
parent
16f98f5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
ee/app/views/admin/users/_credit_card_info.html.haml
ee/app/views/admin/users/_credit_card_info.html.haml
+17
-18
No files found.
ee/app/views/admin/users/_credit_card_info.html.haml
View file @
3ebd5476
...
...
@@ -8,30 +8,29 @@
=
link_to
card_match_admin_user_path
(
@user
)
do
=
_
(
'other card matches'
)
%ul
.content-list
-
if
credit_card_validation
.
nil?
%li
#credit-card-status
%li
#credit-card-status
-
if
credit_card_validation
.
nil?
%span
.light
=
_
(
'Validated:'
)
%strong
=
_
(
'No'
)
-
else
%li
-
if
credit_card_validation
.
holder_name
%span
.light
=
_
(
'Holder name:'
)
%strong
=
credit_card_validation
.
holder_name
%li
#credit-card-status
-
else
%span
.light
=
_
(
'Validated at:'
)
%strong
=
credit_card_validation
.
credit_card_validated_at
.
to_s
(
:medium
)
-
if
credit_card_validation
.
holder_name
%li
-
if
credit_card_validation
.
last_digits
%span
.light
=
_
(
'Card number:'
)
%strong
=
credit_card_validation
.
last_digits
.
to_s
.
rjust
(
4
,
'0'
)
%span
.light
=
_
(
'Holder name:'
)
%strong
=
credit_card_validation
.
holder_name
-
if
credit_card_validation
.
last_digits
%li
-
if
credit_card_validation
.
expiration_date
%span
.light
=
_
(
'Expiration date:'
)
%strong
=
credit_card_validation
.
expiration_date
%span
.light
=
_
(
'Card number:'
)
%strong
=
credit_card_validation
.
last_digits
.
to_s
.
rjust
(
4
,
'0'
)
-
if
credit_card_validation
.
expiration_date
%li
%span
.light
=
_
(
'Expiration date:'
)
%strong
=
credit_card_validation
.
expiration_date
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment