diff --git a/VERSION b/VERSION index 54d1a4f2a4a7f6afc19897c88a7b73c17ccc54fb..a803cc227fe6ff1fbb6dcfc2dde3e4ccc450257e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.13.0 +0.14.0 diff --git a/lib/SeMeet.pm b/lib/SeMeet.pm index 6d5e8db6588a8f58942002a9953e5d8b9b2db779..b20a5a6f6a8df7bc031223c393208a74f561d31e 100644 --- a/lib/SeMeet.pm +++ b/lib/SeMeet.pm @@ -134,6 +134,7 @@ sub startup( $self ) { $r->get('/')->to(cb => sub { shift->render('index'); }); $r->get('/meets/:id')->requires(authenticated => 1)->to('Meets#meet'); + $r->get('/meets/:id')->to(cb => sub { shift->render('unauthorized'); }); $r->get('/guest/:token')->to('Invites#meet'); $r->websocket('/ws')->to('Websockets#main'); diff --git a/templates/index.html.ep b/templates/index.html.ep index 7757df4b5f9817779c4112c379423985f4c662ac..422f6edc3db11aacf43b007ba1274a35d06163fb 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -9,9 +9,7 @@ </div> <div> -<h1 class="head-alt-xl">Opravdu bezpeÄŤnĂ˝ jitsi</h1> -<h1 class="head-alt-xl text-blue-300">VĹľdy vĂš kdo tÄ› poslouchá</h1> -<h1 class="head-alt-xl text-green-400">ŽádnĂ náhodnĂ moderatoĹ™i</h1> +<h1 class="head-alt-xl">BezpeÄŤnĂ˝ jitsi jenom pro ověřenĂ© účastnĂky</h1> <h1 class="head-alt-lg text-red-600 pt-10">TestovacĂ provoz</h1> </div> </div> diff --git a/templates/unauthorized.html.ep b/templates/unauthorized.html.ep new file mode 100644 index 0000000000000000000000000000000000000000..95dd640fb236c0aaad5b3e342849c6c6cf6c67f9 --- /dev/null +++ b/templates/unauthorized.html.ep @@ -0,0 +1,14 @@ +% layout 'default'; + +<h1 class="head-alt-xl">AktuálnÄ› nemáte oprávnÄ›nĂ pro pĹ™Ăstup do tĂ©to mĂstnosti</h1> + +<a href="<%= oidc->authorize %>"> +<button class="btn btn--icon btn--grey-125 btn--hoveractive"> + <div class="btn__body-wrap"> + <div class="btn__body">PĹ™ihlásit se</div> + <div class="btn__icon"> + <i class="ico--pirati"></i> + </div> + </div> +</button> +</a>