mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Add admin-placeable alerts
This commit is contained in:
parent
69ff2309f6
commit
9e86389b62
4 changed files with 17 additions and 1 deletions
|
@ -204,6 +204,11 @@ class User extends RowModel
|
||||||
return $this->getRecord()->shortcode;
|
return $this->getRecord()->shortcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getAlert(): ?string
|
||||||
|
{
|
||||||
|
return $this->getRecord()->alert;
|
||||||
|
}
|
||||||
|
|
||||||
function getBanReason(): ?string
|
function getBanReason(): ?string
|
||||||
{
|
{
|
||||||
return $this->getRecord()->block_reason;
|
return $this->getRecord()->block_reason;
|
||||||
|
|
|
@ -349,7 +349,7 @@
|
||||||
|
|
||||||
<div class="right_big_block">
|
<div class="right_big_block">
|
||||||
<div class="page_info">
|
<div class="page_info">
|
||||||
|
<div n:if="!is_null($alert = $user->getAlert())" class="user-alert">{$alert}</div>
|
||||||
<div class="accountInfo clearFix">
|
<div class="accountInfo clearFix">
|
||||||
<div class="profileName">
|
<div class="profileName">
|
||||||
<h2>{$user->getFullName()}</h2>
|
<h2>{$user->getFullName()}</h2>
|
||||||
|
|
|
@ -1432,4 +1432,14 @@ body.scrolled .toTop:hover {
|
||||||
|
|
||||||
#ovkDraw .literally .lc-picker .toolbar-button:hover:not(.disabled), #ovkDraw .literally .horz-toolbar .square-toolbar-button:hover:not(.disabled) {
|
#ovkDraw .literally .lc-picker .toolbar-button:hover:not(.disabled), #ovkDraw .literally .horz-toolbar .square-toolbar-button:hover:not(.disabled) {
|
||||||
border-color: #cdcdcd;
|
border-color: #cdcdcd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-alert {
|
||||||
|
margin-left: 9px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
padding: 4px;
|
||||||
|
border: 1px solid #c3a476;
|
||||||
|
font-weight: 900;
|
||||||
|
background-color: #f3ddbd;
|
||||||
|
color: #58462a;
|
||||||
}
|
}
|
1
install/sqls/00003-user-alerts.sql
Normal file
1
install/sqls/00003-user-alerts.sql
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE `profiles` ADD `alert` TEXT NULL DEFAULT NULL AFTER `since`;
|
Loading…
Reference in a new issue