add counter on tab

This commit is contained in:
mrilyew 2025-01-10 16:51:53 +03:00
parent 4b95283a55
commit cebb4d4eff
2 changed files with 14 additions and 1 deletions

View file

@ -33,7 +33,10 @@
<a href="?tab=0">{_document_type_0}</a>
</div>
<div n:foreach="$tabs as $tab" class="mb_tab" n:attr="id => $tab['type'] == $current_tab ? active">
<a href="?tab={$tab['type']}">{$tab["name"]}</a>
<a href="?tab={$tab['type']}">
{$tab["name"]}
<span class="special_counter">{$tab["count"]}</span>
</a>
</div>
</div>
</div>

View file

@ -2255,6 +2255,12 @@ table td[width="120"] {
border-radius: 2px;
}
.mb_tab .special_counter {
color: #595959;
font-weight: bold;
margin: 0px 1px;
}
.mb_tab:hover {
background: #e2e0e0;
}
@ -2272,6 +2278,10 @@ table td[width="120"] {
color: white;
}
.mb_tab#active .special_counter {
color: #bdbdbd;
}
.border-block {
box-shadow: inset 0 0 0 1px #b6bfca, inset 0 0 0 10px #d8dfe7;
width: 300px;