Commit a8341718 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: fix layout bugs in admin and update translation files

fixes #40
parent e109df30
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
<?php

/**
 * @copyright  2020 Podlibre
 * @license    https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
 * @link       https://castopod.org/
 */

return [
    'dashboard' => 'Admin dashboard',
    'welcome_message' => 'Welcome to the admin area!',
];
+5 −0
Original line number Diff line number Diff line
@@ -20,4 +20,9 @@ return [
    'pages' => 'Pages',
    'page-list' => 'All pages',
    'page-create' => 'New Page',
    'account' => [
        'my-account' => 'My account',
        'change-password' => 'Change password',
        'logout' => 'Logout',
    ],
];
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
}

.form-radio-btn + label {
  @apply px-2 py-1 text-sm text-black bg-white border rounded cursor-pointer;
  @apply inline-block px-2 py-1 text-sm text-black bg-white border rounded cursor-pointer;

  &:hover {
    @apply bg-green-100;
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
                        'pageTitle'
                    ) ?></h1>
                </div>
                <div class="flex flex-wrap gap-y-2"><?= $this->renderSection(
                <div class="flex flex-wrap"><?= $this->renderSection(
                    'headerRight'
                ) ?></div>
            </div>
+3 −4
Original line number Diff line number Diff line
@@ -52,13 +52,12 @@ $navigation = [
    <nav class="absolute z-50 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="my-accountDropdown" data-popper="menu" data-popper-placement="right-end">
        <a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
            'my-account'
        ) ?>">My Account</a>
        ) ?>"><?= lang('AdminNavigation.account.my-account') ?></a>
        <a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
            'change-password'
        ) ?>">Change password</a>
        ) ?>"><?= lang('AdminNavigation.account.change-password') ?></a>
        <a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
            'logout'
        ) ?>">Logout</a>
        ) ?>"><?= lang('AdminNavigation.account.logout') ?></a>
    </nav>
</div>
Loading