1
0
mirror of https://github.com/dani/vroom.git synced 2024-07-04 09:18:53 +02:00
vroom/templates/default/error.html.ep
Daniel Berteaud 6300a0b6d4 Add a retry button on error page
If the error is WRONG_PASSWORD
2014-05-12 18:54:19 +02:00

19 lines
768 B
Plaintext

% title $self->l('OOOPS');
%= include 'header'
%= include 'public_toolbar'
<div class="container-fluid">
<div class="jumbotron alert-danger">
<h1><%=l 'ERROR_OCCURED' %></h1>
<p><%= $msg %></p>
<div class="btn-group">
<a class="btn btn-primary btn-lg" role="button" href="<%= $self->url_for('/') %>"><%=l 'BACK_TO_MAIN_MENU' %></a>
<% if ($err eq 'ERROR_NAME_CONFLICT'){ %>
<a class="btn btn-default btn-lg" role="button" href="<%= $self->url_for('/') . $room %>"><%=l 'JOIN_THIS_ROOM' %></a>
<% } elsif ($err eq 'WRONG_PASSWORD'){ %>
<a class="btn btn-default btn-lg" role="button" href="<%= $self->url_for('/password') . '/' . $room %>"><%=l 'TRY_AGAIN' %></a>
<% } %>
</div>
</div>
</div>
%= include 'footer'