feat: show room name on join page

pull/16/head
sualko 2020-04-28 14:34:30 +02:00
parent 44daf3f959
commit b0ce8f2c5d
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ class JoinController extends PublicShareController
} elseif (empty($displayname) || strlen($displayname) < 3) { } elseif (empty($displayname) || strlen($displayname) < 3) {
$apiUrl = $this->config->getAppValue($this->appName, 'api.url'); $apiUrl = $this->config->getAppValue($this->appName, 'api.url');
$response = new TemplateResponse($this->appName, 'publicdisplayname', [ $response = new TemplateResponse($this->appName, 'publicdisplayname', [
'room' => $room->name,
'wrongdisplayname' => !empty($displayname) && strlen($displayname) < 3 'wrongdisplayname' => !empty($displayname) && strlen($displayname) < 3
], 'guest'); ], 'guest');

View File

@ -6,7 +6,7 @@
?> ?>
<form method="get" action="?"> <form method="get" action="?">
<fieldset class="warning"> <fieldset class="warning">
<!-- @TODO show room name --> <h2><?php p($_['room']) ?></h2>
<?php if (!isset($_['wrongdisplayname']) || !$_['wrongdisplayname']): ?> <?php if (!isset($_['wrongdisplayname']) || !$_['wrongdisplayname']): ?>
<p><?php p($l->t('How is your name?')); ?></p> <p><?php p($l->t('How is your name?')); ?></p>
<?php endif; ?> <?php endif; ?>