Add admin area link in the toolbar

master
Daniel Berteaud 9 years ago
parent cc852abb2b
commit 344ab80b6b
  1. 3
      templates/default/public_toolbar.html.ep
  2. 2
      vroom.pl

@ -28,6 +28,9 @@
<a href="<%= $self->url_for('/documentation') %>"><%=l 'DOCUMENTATION' %></a> <a href="<%= $self->url_for('/documentation') %>"><%=l 'DOCUMENTATION' %></a>
</li> </li>
<% } %> <% } %>
<li id='lnk_admin'>
<a href="<%= $self->url_for('/admin') %>"><%=l 'ADMINISTRATION' %></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 ($self->get_supported_lang){ %> <% foreach my $lang ($self->get_supported_lang){ %>

@ -2235,7 +2235,7 @@ group {
$self->make_key_admin($self->session('key')); $self->make_key_admin($self->session('key'));
} }
$self->purge_rooms; $self->purge_rooms;
$self->stash(admin => 1); $self->stash(page => 'admin');
return 1; return 1;
}; };

Loading…
Cancel
Save