diff --git a/app/assets/stylesheets/settings.scss b/app/assets/stylesheets/settings.scss
index f1573aaf9..bbf65198b 100755
--- a/app/assets/stylesheets/settings.scss
+++ b/app/assets/stylesheets/settings.scss
@@ -277,6 +277,11 @@
.secret-field {
margin:30px 0px;
}
+ hr {
+ opacity: 0.3;
+ margin-top: 20px;
+ width: 70%;
+ }
}
.default-billing-message {
margin:10px 0px;
@@ -521,9 +526,14 @@ ul.delete__account{
.api__secret {
&__container {
background-color: $off-white;
- height: 3rem;
- margin: 1rem 0;
+ height: 6.5rem;
+ margin: 0.5rem 0;
padding: 0.5rem;
+ border-radius: 3px;
+ border: 1px solid $light-medium-gray;
+ @media screen and ( min-width: 600px ){
+ height: 5rem;
+ }
}
&__desc {
@@ -535,6 +545,16 @@ ul.delete__account{
margin: 0;
padding-bottom: 0.25rem;
}
+ .content {
+ margin: 0;
+ color: $medium-gray;
+ font-weight: bold;
+ font-family: $monospace;
+ padding: 5px 8px;
+ border: 1px dashed $black;
+ overflow: hidden;
+ margin: 3px 0px;
+ }
.subtitle {
margin: 0;
color: $dark-medium-gray;
@@ -542,9 +562,12 @@ ul.delete__account{
}
&__revoke {
- float: left;
- width: 30%;
text-align: right;
- margin: 0 auto;
+ margin: 1.6rem auto 0;
+ display: block;
+ @media screen and ( min-width: 600px ){
+ float: left;
+ width: 30%;
+ }
}
}
diff --git a/app/controllers/api_secrets_controller.rb b/app/controllers/api_secrets_controller.rb
index 21df36e5b..f5138d4a8 100644
--- a/app/controllers/api_secrets_controller.rb
+++ b/app/controllers/api_secrets_controller.rb
@@ -7,7 +7,7 @@ class ApiSecretsController < ApplicationController
@secret = ApiSecret.new(permitted_attributes(ApiSecret))
@secret.user_id = current_user.id
if @secret.save
- flash[:notice] = "Your access token has been generated: #{@secret.secret}. Be sure to copy it to somewhere safe now. You won’t be able to see it again!"
+ flash[:notice] = "Your access token has been generated: #{@secret.secret}."
else
flash[:error] = @secret.errors.full_messages.to_sentence
end
diff --git a/app/views/users/_account.html.erb b/app/views/users/_account.html.erb
index a24464f2b..c9f6b4c58 100644
--- a/app/views/users/_account.html.erb
+++ b/app/views/users/_account.html.erb
@@ -4,23 +4,26 @@
CONNECT GITHUB ACCOUNT
+
You can generate personal access tokens to use for authentication with the DEV API.
+You can generate personal access tokens to use for authentication with the DEV API. The API is still in early beta though.
None yet!
<% end %> @@ -37,6 +40,7 @@<%= api_secret.description %> +
<%= api_secret.secret %>
Created <%= api_secret.created_at.to_date.to_s %>