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

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

Loading…
Cancel
Save