1
0
mirror of https://github.com/dani/vroom.git synced 2024-07-02 12:13:12 +02:00
vroom/templates/default/admin.html.ep
Daniel Berteaud 6ae16a3680 Remove room ID from admin page
And add a button to join
2014-07-19 13:50:19 +02:00

48 lines
1.1 KiB
Plaintext

% title $self->l('ADMINISTRATION');
%=include 'header'
%=include 'public_toolbar'
<div class="container-fluid">
%= include 'noscript'
<div class="panel panel-default">
<div class="panel-heading">
<%=l 'EXISTING_ROOMS' %>
</div>
<table class="table table-hover">
<thead>
<tr>
<th>
<%=l 'ROOM_NAME' %>
</th>
<th>
<%=l 'MANAGE' %>
</th>
</tr>
</thead>
<tbody>
<%
my @rooms = $self->get_all_rooms();
foreach my $room (@rooms){
my $data = $self->get_room($room);
%>
<tr>
<td>
<%= $room %>
</td>
<td>
<a class="btn btn-primary" href="<%= $self->get_url('/admin/') . $room %>">
<%=l 'MANAGE' %>
</a>
<a class="btn btn-default" href="<%= $self->get_url('/') . $room %>">
<%=l 'JOIN_THIS_ROOM' %>
</a>
</td>
</tr>
<% } %>
</tbody>
</table>
</div>
</div>
%=include 'js_common'
%=include 'footer'