diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-06-09 14:08:49 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-06-09 14:08:49 +0530 |
commit | 1f5ecf916ee7b1d34fbf8775890b2aada2055384 (patch) | |
tree | 72358f3dd981de0ead3effcbb84b65a7d5c3fdb4 /app/controllers/profiles/personal_access_tokens_controller.rb | |
parent | 0dff6fd7148957fa94d2626e3912cd929ba150d3 (diff) | |
download | gitlab-ce-1f5ecf916ee7b1d34fbf8775890b2aada2055384.tar.gz |
Implement @jschatz1's comments.
- No hardcoded colors in any SCSS file except `variables.scss`
- Don't allow choosing a date in the past
- Use the same table as in the "Applications" tab
- The button should say "Create Personal Access Token"
- Float the revoke button to the right of the table cell
- Change the revocation message to be more explicit.
- Date shouldn't look selected on page load
- Don't use a panel for the created token
- Use a normal flash for "Your new personal access token has been created"
- Show the input (with the token) below it full width.
- Put the "Make sure you save it - you won't be able to access it again." message near the input
- Have the created token's input highlight all on single click
Diffstat (limited to 'app/controllers/profiles/personal_access_tokens_controller.rb')
-rw-r--r-- | app/controllers/profiles/personal_access_tokens_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/personal_access_tokens_controller.rb b/app/controllers/profiles/personal_access_tokens_controller.rb index a1545a5dd00..86e08fed8e2 100644 --- a/app/controllers/profiles/personal_access_tokens_controller.rb +++ b/app/controllers/profiles/personal_access_tokens_controller.rb @@ -10,7 +10,7 @@ class Profiles::PersonalAccessTokensController < Profiles::ApplicationController if @personal_access_token.save flash[:personal_access_token] = @personal_access_token.token - redirect_to profile_personal_access_tokens_path + redirect_to profile_personal_access_tokens_path, notice: "Your new personal access token has been created." else load_personal_access_tokens render :index |