add configuration file, add the ability to disable registrations
This commit is contained in:
parent
9fd4d9adcf
commit
eaf58ec580
4 changed files with 70 additions and 27 deletions
|
|
@ -28,9 +28,11 @@ let render_unsafe ~title ~content request =
|
|||
<ul class="navbar-nav ms-auto mb-2 mb-md-0">
|
||||
% begin match Dream.session "nick" request with
|
||||
% | None ->
|
||||
% begin if App.open_registration then
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/register">Register</a>
|
||||
</li>
|
||||
% end;
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/login">Login</a>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue