💄 (admin): use cards in themes page

This commit is contained in:
Kazhnuz 2025-01-18 14:35:54 +01:00
parent 1de1e63dc6
commit ee78d8e53a

View file

@ -3,9 +3,10 @@
echo Bootstrap::pageTitle(array('title' => $L->g('Themes'), 'icon' => 'desktop'));
echo '
<table class="table mt-3">
<div class="card mt-3">
<table class="table table-stripped mb-0">
<thead>
<tr>
<tr class="card-header">
<th class="border-bottom-0 w-25" scope="col">' . $L->g('Name') . '</th>
<th class="border-bottom-0 d-none d-sm-table-cell" scope="col">' . $L->g('Description') . '</th>
<th class="text-center border-bottom-0 d-none d-lg-table-cell" scope="col">' . $L->g('Version') . '</th>
@ -17,7 +18,7 @@ echo '
foreach ($themes as $theme) {
echo '
<tr ' . ($theme['dirname'] == $site->theme() ? 'class="bg-light"' : '') . '>
<tr class="card-tablebody">
<td class="align-middle pt-3 pb-3">
<div>'.$theme['name'].($theme['dirname']==$site->theme()?'<span class="badge badge-primary ml-2">'.$L->g('Active').'</span>':'').'</div>
<div class="mt-1">
@ -54,4 +55,5 @@ foreach ($themes as $theme) {
echo '
</tbody>
</table>
</div>
';