summaryrefslogtreecommitdiff
path: root/app/views/profiles/accounts
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-23 17:02:05 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-05-24 22:29:59 +0200
commit6dc2ade49ccc45c29c3fe05d6ccc4811fd198aea (patch)
tree0e7d46e22e4422065ba555b35c4fdd6f0ae96d1c /app/views/profiles/accounts
parent30141169eca70e099c77da066cb51731bfa54ff6 (diff)
downloadgitlab-ce-6dc2ade49ccc45c29c3fe05d6ccc4811fd198aea.tar.gz
user can reset his rss token on the account page
Diffstat (limited to 'app/views/profiles/accounts')
-rw-r--r--app/views/profiles/accounts/show.html.haml16
1 files changed, 12 insertions, 4 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml
index b7da2b80873..26e2a4a7f9e 100644
--- a/app/views/profiles/accounts/show.html.haml
+++ b/app/views/profiles/accounts/show.html.haml
@@ -8,11 +8,10 @@
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
- = incoming_email_token_enabled? ? "Private Tokens" : "Private Token"
+ Private Tokens
%p
- Keep
- = incoming_email_token_enabled? ? "these tokens" : "this token"
- secret, anyone with access to them can interact with GitLab as if they were you.
+ Keep these tokens secret, anyone with access to them can interact with
+ GitLab as if they were you.
.col-lg-9.private-tokens-reset
.reset-action
%p.cgray
@@ -23,6 +22,15 @@
.prepend-top-default
= link_to 'Reset private token', reset_private_token_profile_path, method: :put, data: { confirm: "Are you sure?" }, class: "btn btn-default private-token"
+ .reset-action
+ %p.cgray
+ = label_tag "rss-token", "RSS Token", class: 'label-light'
+ = text_field_tag "rss-token", current_user.rss_token, class: "form-control", readonly: true, onclick: "this.select()"
+ %p.help-block
+ Your RSS token is used to create urls for personalized RSS feeds.
+ .prepend-top-default
+ = link_to 'Reset RSS token', reset_rss_token_profile_path, method: :put, data: { confirm: "Are you sure? This action will invalidate all your existing rss links." }, class: "btn btn-default rss-token"
+
- if incoming_email_token_enabled?
.reset-action
%p.cgray