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
6df8f874
Commit
6df8f874
authored
Sep 01, 2019
by
mh
Browse files
unify usage
parent
caa27512
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/app_passwords/show.html.erb
View file @
6df8f874
...
...
@@ -15,10 +15,10 @@
<%
else
%>
<p>
<%=
t
:app_passwords_help
%>
<%=
t
(
:app_passwords_help
)
%>
</p>
<%
if
@passwords
&&
!
@passwords
.
empty
?
%>
<%
if
@passwords
.
present
?
%>
<br
/>
<hr
/>
...
...
@@ -34,7 +34,7 @@
<%-
end
%>
)
<%=
hidden_field_tag
(
:delete
,
''
,
value:
pw
)
%>
<%=
submit_tag
(
t
:delete
)
%>
<%=
submit_tag
t
(
:delete
)
)
%>
<%
end
%>
</li>
<%
end
%>
...
...
@@ -45,22 +45,22 @@
<br
/>
<p>
<b>
<%=
t
:new_app_passwords
%>
:
</b>
<b>
<%=
t
(
:new_app_passwords
)
%>
:
</b>
</p>
<%=
form_tag
(
app_passwords_path
,
method:
"post"
)
do
%>
<table>
<tr><td>
<%=
label_tag
(
:app_name
,
(
t
:app_name
))
%>
<%=
label_tag
(
:app_name
,
t
(
:app_name
))
%>
</td><td>
<%=
text_field_tag
(
:app_name
,
''
,
value:
t
(
:app_name
),
autocomplete:
'off'
)
%>
</td></tr><tr><td>
<%=
label_tag
(
:password
,
(
t
:your_main_pw
))
%>
<%=
label_tag
(
:password
,
t
(
:your_main_pw
))
%>
</td><td>
<%=
password_field_tag
(
:password
,
nil
,
placeholder:
t
(
:enter_your_current_pw
))
%>
</td></tr>
</table>
<p>
<%=
submit_tag
(
t
:generate
)
%>
<%=
submit_tag
t
(
:generate
)
%>
<%=
link_to
t
(
:back
),
root_path
%>
</p>
<%
end
%>
...
...
Write
Preview
Supports
Markdown
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