-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from gate-sso/issue-#133
Issue #133 - Fixing authorization issues on user and group page
- Loading branch information
Showing
4 changed files
with
61 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,19 @@ | |
span.input-group-text @ | ||
input#email.form-control placeholder="[email protected]" readonly="" type="email" value="#{@user.email}" | ||
|
||
form.needs-validation novalidate="" | ||
.form-row.mb-3 | ||
.col | ||
b Your Access Token | ||
.col | ||
- if flash[:token] | ||
.alert.alert-warning role="alert" | ||
| Important! please make note of this token, you will see it only this once. | ||
pre | ||
= flash[:token] | ||
- else | ||
= link_to 'Regenerate Token', regenerate_token_user_path(@user), :data => {:confirm => 'Are you sure?'} | ||
- if (current_user.admin? or (current_user.id == @user.id)) | ||
form.needs-validation novalidate="" | ||
.form-row.mb-3 | ||
.col | ||
b Your Access Token | ||
.col | ||
- if flash[:token] | ||
.alert.alert-warning role="alert" | ||
| Important! please make note of this token, you will see it only this once. | ||
pre | ||
= flash[:token] | ||
- else | ||
= link_to 'Regenerate Token', regenerate_token_user_path(@user), :data => {:confirm => 'Are you sure?'} | ||
|
||
- if current_user.admin? | ||
.card | ||
|
@@ -73,15 +74,21 @@ | |
br | ||
.card | ||
.card-body | ||
h6.card-title Public Key | ||
= form_tag user_public_key_update_path, method: :post do | ||
.row | ||
.col | ||
= text_area_tag "public_key", @user.public_key, class: "form-contol text-align-top", style: "height:200px;width:100%;", placeholder: "Your public key here..." | ||
br | ||
.row | ||
.col-md-3 | ||
= submit_tag "Update key", class: "form-control btn-md btn-primary" | ||
- if (current_user.admin? or (current_user.id == @user.id)) | ||
h6.card-title Public Key | ||
= form_tag user_public_key_update_path, method: :post do | ||
.row | ||
.col | ||
= text_area_tag "public_key", @user.public_key, class: "form-contol text-align-top", style: "height:200px;width:100%;", placeholder: "Your public key here..." | ||
br | ||
.row | ||
.col-md-3 | ||
= submit_tag "Update key", class: "form-control btn-md btn-primary" | ||
- else | ||
h6.card-title Public Key | ||
.row | ||
.col | ||
= @user.public_key | ||
|
||
br | ||
.card | ||
|