Commit 399a6330 authored by Timothy Andrew's avatar Timothy Andrew

Fix minor styling issues.

- No "Actions" label necessary
- `%td` can be moved out of `if/else`
- Page header should be "Profile Settings", not "Personal Access Tokens"
- "You don't have any tokens" message should be styled consistently
parent b4b02485
- page_title "Personal Access Tokens" - page_title "Personal Access Tokens"
- header_title page_title, profile_personal_access_tokens_path
.row.prepend-top-default .row.prepend-top-default
.col-lg-3.profile-settings-sidebar .col-lg-3.profile-settings-sidebar
%h4.prepend-top-0 %h4.prepend-top-0
= page_title = page_title
%p %p
You can generate a personal access token for each application you use that needs access to GitLab. You can generate a personal access token for each application you use that needs access to the GitLab API.
.col-lg-9 .col-lg-9
- if flash[:personal_access_token] - if flash[:personal_access_token]
...@@ -49,21 +48,22 @@ ...@@ -49,21 +48,22 @@
%th Name %th Name
%th Created %th Created
%th Expires %th Expires
%th Actions %th
%tbody %tbody
- @active_personal_access_tokens.each do |token| - @active_personal_access_tokens.each do |token|
%tr %tr
%td= token.name %td= token.name
%td= token.created_at.to_date.to_s(:medium) %td= token.created_at.to_date.to_s(:medium)
%td
- if token.expires_at.present? - if token.expires_at.present?
%td= token.expires_at.to_date.to_s(:medium) = token.expires_at.to_date.to_s(:medium)
- else - else
%td
%span.personal-access-tokens-never-expires-label Never %span.personal-access-tokens-never-expires-label Never
%td= link_to "Revoke", revoke_profile_personal_access_token_path(token), method: :put, class: "btn btn-danger", data: { confirm: "Are you sure? This cannot be undone." } %td= link_to "Revoke", revoke_profile_personal_access_token_path(token), method: :put, class: "btn btn-danger", data: { confirm: "Are you sure? This cannot be undone." }
- else - else
%span You don't have any active tokens yet. .settings-message.text-center
You don't have any active tokens yet.
%hr %hr
...@@ -83,7 +83,8 @@ ...@@ -83,7 +83,8 @@
%td= token.created_at.to_date.to_s(:medium) %td= token.created_at.to_date.to_s(:medium)
- else - else
%span No inactive tokens. .settings-message.text-center
There are no inactive tokens.
:javascript :javascript
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment