Added account_flags_block partial to admin pages
• Added: - account_flags_block partial to admin pages (groups, accounts, reports) so admin/moderators can easily see pro, verified, investor, donor, spam flags of an account
This commit is contained in:
@@ -9,14 +9,4 @@
|
||||
%td
|
||||
%samp= number_with_delimiter account.statuses.count
|
||||
%td
|
||||
%div{ :style => "display:flex;flex-direction:row;" }
|
||||
- if account.is_flagged_as_spam
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#781600;border-radius:6px;color:#fff;width:40px;line-height:22px;font-weight:600;padding:2px 0 0 6px;" } SPAM
|
||||
- if account.is_pro
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#FFD700;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } P
|
||||
- if account.is_verified
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#fff;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } V
|
||||
- if account.is_donor
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#4EA6FF;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } D
|
||||
- if account.is_investor
|
||||
%span{ :style => "display:inline-block;font-size:12px;background-color:#6DD900;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } I
|
||||
= render 'admin/accounts/account_flags_block', :account => account
|
||||
11
app/views/admin/accounts/_account_flags_block.html.haml
Normal file
11
app/views/admin/accounts/_account_flags_block.html.haml
Normal file
@@ -0,0 +1,11 @@
|
||||
%div{ :style => "display:flex;flex-direction:row;" }
|
||||
- if account.is_flagged_as_spam
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#781600;border-radius:6px;color:#fff;width:40px;line-height:22px;font-weight:600;padding:2px 0 0 6px;" } SPAM
|
||||
- if account.is_pro
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#FFD700;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } P
|
||||
- if account.is_verified
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#fff;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } V
|
||||
- if account.is_donor
|
||||
%span{ :style => "display:inline-block;margin-right:4px;font-size:12px;background-color:#4EA6FF;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } D
|
||||
- if account.is_investor
|
||||
%span{ :style => "display:inline-block;font-size:12px;background-color:#6DD900;border-radius:6px;color:#292929;width:24px;line-height:22px;font-weight:600;text-align:center;padding:2px 0 0 2px;" } I
|
||||
Reference in New Issue
Block a user