Commit e733c446 authored by Clement Ho's avatar Clement Ho

Merge branch '50126-blocked-user-card' into 'master'

Resolve ""Block user" section in admin area has wrong styling"

Closes #50126

See merge request gitlab-org/gitlab-ce!21095
parents af0cac1f c1824ac7
......@@ -128,8 +128,8 @@
.col-md-6
- unless @user == current_user
- unless @user.confirmed?
.card.bg-info
.card-header
.card.border-info
.card-header.bg-info.text-white
Confirm user
.card-body
- if @user.unconfirmed_email.present?
......@@ -138,8 +138,8 @@
%br
= link_to 'Confirm user', confirm_admin_user_path(@user), method: :put, class: "btn btn-info", data: { confirm: 'Are you sure?' }
- if @user.blocked?
.card.bg-info
.card-header
.card.border-info
.card-header.bg-info.text-white
This user is blocked
.card-body
%p A blocked user cannot:
......@@ -162,8 +162,8 @@
%br
= link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-warning"
- if @user.access_locked?
.card.bg-info
.card-header
.card.border-info
.card-header.bg-info.text-white
This account has been locked
.card-body
%p This user has been temporarily locked due to excessive number of failed logins. You may manually unlock the account.
......
- unless @project.pages_deployed?
.card.bg-info
.card-header
.card.border-info
.card-header.bg-info.text-white
Configure pages
.card-body
%p
......
......@@ -2,8 +2,8 @@
- primary = local_assigns.fetch(:primary, false)
- panel_class = primary ? 'bg-primary text-white' : ''
.card{ class: panel_class }
.card-header
.card
.card-header{ class: panel_class }
.title
= title
- if show_counter
......
......@@ -19,5 +19,5 @@
.monospace
= File.basename(file)
- else
%p.card.bg-light.text-center
No plugins found.
.card.bg-light.text-center
.nothing-here-block No plugins found.
---
title: Fix blocked user card style
merge_request: 21095
author:
type: fixed
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