diff --git a/public/css/default.css b/public/css/default.css index 557b615..1631f13 100644 --- a/public/css/default.css +++ b/public/css/default.css @@ -64,13 +64,11 @@ main display: block; } -main > h1 +main > h2 { - font-size: 14px; - font-weight: normal; - margin: 16px 0; - padding: 0 4px; - text-align: right; + display: inline-block; + font-size: 12px; + margin: 16px 4px; } main > form > input[type="text"] diff --git a/src/Controller/ModuleController.php b/src/Controller/ModuleController.php index 7ed2222..caf570b 100644 --- a/src/Controller/ModuleController.php +++ b/src/Controller/ModuleController.php @@ -60,14 +60,21 @@ class ModuleController extends AbstractController $list = []; + $rooms = explode('|', $this->getParameter('app.kevacoin.room.namespaces')); + foreach ((array) $client->kevaListNamespaces() as $value) { + // Get current room namespace (could be third-party) if ($value['namespaceId'] == $request->get('namespace')) { $name = $value['displayName']; } - $list[$value['namespaceId']] = $value['displayName']; + // Check namespace enabled as room in settings + if (in_array($value['namespaceId'], $rooms)) + { + $list[$value['namespaceId']] = $value['displayName']; + } } asort($list); diff --git a/templates/default/module/room.html.twig b/templates/default/module/room.html.twig index 4fac494..825d6b6 100644 --- a/templates/default/module/room.html.twig +++ b/templates/default/module/room.html.twig @@ -1,10 +1,24 @@
+{% if list %} + {% set i = 0 %} + {% for namespace, name in list %} + {% if i %}•{% endif %} +