BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6369d23d
Commit
6369d23d
authored
May 06, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nav and layout for TwoFactorAuthsController
parent
c891ef93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
two_factor_auths_controller.rb
app/controllers/profiles/two_factor_auths_controller.rb
+1
-1
_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+1
-1
No files found.
app/controllers/profiles/two_factor_auths_controller.rb
View file @
6369d23d
class
Profiles
::
TwoFactorAuthsController
<
ApplicationController
class
Profiles
::
TwoFactorAuthsController
<
Profiles
::
ApplicationController
def
new
def
new
unless
current_user
.
otp_secret
unless
current_user
.
otp_secret
current_user
.
otp_secret
=
User
.
generate_otp_secret
current_user
.
otp_secret
=
User
.
generate_otp_secret
...
...
app/views/layouts/nav/_profile.html.haml
View file @
6369d23d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
=
icon
(
'user fw'
)
=
icon
(
'user fw'
)
%span
%span
Profile
Profile
=
nav_link
(
controller:
:accounts
)
do
=
nav_link
(
controller:
[
:accounts
,
:two_factor_auths
]
)
do
=
link_to
profile_account_path
,
title:
'Account'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_account_path
,
title:
'Account'
,
data:
{
placement:
'right'
}
do
=
icon
(
'gear fw'
)
=
icon
(
'gear fw'
)
%span
%span
...
...
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