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
30141169
Commit
30141169
authored
May 23, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code
parent
4cd6fc6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
app/views/profiles/accounts/show.html.haml
app/views/profiles/accounts/show.html.haml
+4
-9
No files found.
app/views/profiles/accounts/show.html.haml
View file @
30141169
...
...
@@ -16,18 +16,13 @@
.col-lg-9.private-tokens-reset
.reset-action
%p
.cgray
-
if
current_user
.
private_token
=
label_tag
"private-token"
,
"Private token"
,
class:
"label-light"
=
text_field_tag
"private-token"
,
current_user
.
private_token
,
class:
"form-control"
,
readonly:
true
,
onclick:
"this.select()"
-
else
%span
You don't have one yet. Click generate to fix it.
=
label_tag
"private-token"
,
"Private token"
,
class:
"label-light"
=
text_field_tag
"private-token"
,
current_user
.
private_token
,
class:
"form-control"
,
readonly:
true
,
onclick:
"this.select()"
%p
.help-block
Your private token is used to access the API and Atom feeds without username/password authentication.
.prepend-top-default
-
if
current_user
.
private_token
=
link_to
'Reset private token'
,
reset_private_token_profile_path
,
method: :put
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-default private-token"
-
else
=
f
.
submit
'Generate'
,
class:
"btn btn-default"
=
link_to
'Reset private token'
,
reset_private_token_profile_path
,
method: :put
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-default private-token"
-
if
incoming_email_token_enabled?
.reset-action
%p
.cgray
...
...
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