summaryrefslogtreecommitdiff
path: root/app/views/profiles
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-06-03 09:07:37 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-06-03 09:07:37 +0530
commit399a633061577b8a2ca95c29ce1cfe0abeac4779 (patch)
tree642118b41ae3d31ca160a9d65e6d2983e16a418a /app/views/profiles
parentb4b024857783e1fc39424fdf631b722ee1dfd195 (diff)
downloadgitlab-ce-399a633061577b8a2ca95c29ce1cfe0abeac4779.tar.gz
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
Diffstat (limited to 'app/views/profiles')
-rw-r--r--app/views/profiles/personal_access_tokens/index.html.haml19
1 files changed, 10 insertions, 9 deletions
diff --git a/app/views/profiles/personal_access_tokens/index.html.haml b/app/views/profiles/personal_access_tokens/index.html.haml
index 503f88efb43..68f2813bc1a 100644
--- a/app/views/profiles/personal_access_tokens/index.html.haml
+++ b/app/views/profiles/personal_access_tokens/index.html.haml
@@ -1,12 +1,11 @@
- page_title "Personal Access Tokens"
-- header_title page_title, profile_personal_access_tokens_path
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
= page_title
%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
- if flash[:personal_access_token]
@@ -49,21 +48,22 @@
%th Name
%th Created
%th Expires
- %th Actions
+ %th
%tbody
- @active_personal_access_tokens.each do |token|
%tr
%td= token.name
%td= token.created_at.to_date.to_s(:medium)
- - if token.expires_at.present?
- %td= token.expires_at.to_date.to_s(:medium)
- - else
- %td
+ %td
+ - if token.expires_at.present?
+ = token.expires_at.to_date.to_s(:medium)
+ - else
%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." }
- else
- %span You don't have any active tokens yet.
+ .settings-message.text-center
+ You don't have any active tokens yet.
%hr
@@ -83,7 +83,8 @@
%td= token.created_at.to_date.to_s(:medium)
- else
- %span No inactive tokens.
+ .settings-message.text-center
+ There are no inactive tokens.
:javascript