mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Groups: Add admin-placeable alerts
This commit is contained in:
parent
4b0740316d
commit
99344c5497
4 changed files with 17 additions and 0 deletions
|
@ -346,6 +346,11 @@ class Club extends RowModel
|
|||
{
|
||||
return $this->getRecord()->website;
|
||||
}
|
||||
|
||||
function getAlert(): ?string
|
||||
{
|
||||
return $this->getRecord()->alert;
|
||||
}
|
||||
|
||||
use Traits\TSubscribable;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
{block content}
|
||||
<div class="left_big_block">
|
||||
<div n:if="!is_null($alert = $club->getAlert())" class="group-alert">{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}</div>
|
||||
|
||||
<div class="content_title_expanded" onclick="hidePanel(this);">
|
||||
{_"information"}
|
||||
</div>
|
||||
|
|
|
@ -1648,6 +1648,15 @@ body.scrolled .toTop:hover {
|
|||
color: #58462a;
|
||||
}
|
||||
|
||||
.group-alert {
|
||||
margin-bottom: 8px;
|
||||
padding: 4px;
|
||||
border: 1px solid #c3a476;
|
||||
font-weight: 900;
|
||||
background-color: #f3ddbd;
|
||||
color: #58462a;
|
||||
}
|
||||
|
||||
.knowledgeBaseArticle {
|
||||
margin-top: -11px;
|
||||
/* this is very stupid fix but nah */
|
||||
|
|
1
install/sqls/00022-group-alerts.sql
Normal file
1
install/sqls/00022-group-alerts.sql
Normal file
|
@ -0,0 +1 @@
|
|||
ALTER TABLE `groups` ADD `alert` TEXT NULL DEFAULT NULL;
|
Loading…
Reference in a new issue