Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
d5436426
Commit
d5436426
authored
Jul 31, 2019
by
mh
Browse files
make the absent indication of recovery token work
parent
b71e80df
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/users/edit.html.erb
View file @
d5436426
...
...
@@ -2,11 +2,11 @@
<table>
<%
skip
=
[
'id'
,
'mbxquota'
,
'forward'
,
'ratelimit'
]
yesno
=
[
'mail_crypt_recovery_token'
]
absent
=
[
'mail_crypt_recovery_token'
]
@the_user
.
each
do
|
k
,
v
|
%>
<%
unless
skip
.
include?
(
k
)
||
"
#{
v
}
"
==
""
%>
<tr><td>
<%=
k
%>
</td><td>
<%=
if
yesno
.
include?
(
k
)
then
(
if
v
then
'yes'
else
'no'
end
)
else
v
end
%>
<%=
if
absent
.
include?
(
k
)
then
(
if
v
!=
'absent'
then
'yes'
else
'no'
end
)
else
v
end
%>
</td></tr>
<%
end
%>
<%
end
%>
...
...
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