Add empty doc page

master
Daniel Berteaud 10 years ago
parent 4259c7c617
commit 4acc2cb4ab
  1. 6
      templates/default/documentation.html.ep
  2. 5
      templates/default/public_toolbar.html.ep
  3. 6
      vroom.pl

@ -0,0 +1,6 @@
% title $self->l('DOCUMENTATION');
%= include 'header'
%= include 'public_toolbar'
<div class="container-fluid">
</div>
%= include 'footer'

@ -28,6 +28,11 @@
<li>
<a href="<%= $self->get_url('/feedback') %>"><%=l 'FEEDBACK' %></a>
</li>
<% if ($config->{'interface.demo'}){ %>
<li>
<a href="<%= $self->get_url('/documentation') %>"><%=l 'DOCUMENTATION' %></a>
</li>
<% } %>
<li class="hidden-xs">
<select class="form-control navbar-btn" id="switch_lang">
<% foreach my $lang (qw(en fr)){ %>

@ -119,7 +119,8 @@ helper valid_room_name => sub {
my $ret = {};
# A few names are reserved
my @reserved = qw(about help feedback feedback_thanks goodbye admin localize api
missing dies password kicked invitation js css img fonts snd);
missing dies password kicked invitation js css img fonts snd
documentation);
if ($name !~ m/^[\w\-]{1,49}$/ || grep { $name eq $_ } @reserved){
return 0;
}
@ -1145,6 +1146,9 @@ get '/about' => sub {
);
} => 'about';
# Documentation
get '/documentation' => 'documentation';
# Route for the help page
get '/help' => 'help';

Loading…
Cancel
Save