Add URI handling for /admin/audit

master
Daniel Berteaud 10 years ago
parent ca7aedde5f
commit da2e03396d
  1. 3
      templates/default/admin.html.ep
  2. 6
      vroom.pl

@ -6,6 +6,9 @@
<a class="btn btn-lg btn-primary btn-block" href="<%= $self->url_for('/admin/rooms') %>"> <a class="btn btn-lg btn-primary btn-block" href="<%= $self->url_for('/admin/rooms') %>">
<%=l 'ROOM_MANAGEMENT' %> <%=l 'ROOM_MANAGEMENT' %>
</a> </a>
<a class="btn btn-lg btn-primary btn-block" href="<%= $self->url_for('/admin/audit') %>">
<%=l 'AUDIT' %>
</a>
</div> </div>
%= include 'js_common' %= include 'js_common'

@ -2147,6 +2147,12 @@ group {
my $self = shift; my $self = shift;
return $self->render('admin_manage_rooms'); return $self->render('admin_manage_rooms');
}; };
# Audit
get '/audit' => sub {
my $self = shift;
return $self->render('admin_audit');
};
}; };
# Catch all route: if nothing else match, it's the name of a room # Catch all route: if nothing else match, it's the name of a room

Loading…
Cancel
Save