Various fixes for top/dashboard/themes/plugins notifications styling

This commit is contained in:
Andy Miller
2019-02-12 13:59:08 -07:00
parent 7e5fcd49a9
commit 07c1b449d8
11 changed files with 33 additions and 12 deletions

View File

@@ -843,7 +843,8 @@ class AdminController extends AdminBaseController
foreach ($notifications as $type => $type_notifications) {
if (empty($filter) || in_array($type, $filter_types)) {
$notification_data[$type] = $this->grav['twig']->processTemplate('partials/notification-block.html.twig', ['notifications' => $type_notifications]);
$twig_template = 'partials/notification-' . $type . '-block.html.twig';
$notification_data[$type] = $this->grav['twig']->processTemplate($twig_template, ['notifications' => $type_notifications]);
}
}