1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-28 01:39:29 +02:00

More standard line wrap

This commit is contained in:
Daniel Berteaud 2014-06-17 23:14:55 +02:00
parent 8123f53c34
commit f39b5798a8

View File

@ -3,21 +3,35 @@
%= include 'public_toolbar'
<div class="container-fluid">
<div class="jumbotron alert-danger">
<h2><%=l 'ERROR_OCCURRED' %></h2>
<p><%= $msg %></p>
<h2>
<%=l 'ERROR_OCCURRED' %>
</h2>
<p>
<%= $msg %>
</p>
<div class="row">
<div class="col-sm-6 col-lg-4 col-xl-3">
<a class="btn btn-primary btn-lg btn-full" role="button" href="<%= $self->get_url('/') %>"><%=l 'BACK_TO_MAIN_MENU' %></a>
<a class="btn btn-primary btn-lg btn-full" role="button" href="<%= $self->get_url('/') %>">
<%=l 'BACK_TO_MAIN_MENU' %>
</a>
</div>
<div class="col-sm-6 col-lg-4 col-xl-3">
<% if ($err eq 'ERROR_NAME_CONFLICT'){ %>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/') . $room %>"><%=l 'JOIN_THIS_ROOM' %></a>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/') . $room %>">
<%=l 'JOIN_THIS_ROOM' %>
</a>
<% } elsif ($err eq 'WRONG_PASSWORD'){ %>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/password') . '/' . $room %>"><%=l 'TRY_AGAIN' %></a>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/password') . '/' . $room %>">
<%=l 'TRY_AGAIN' %>
</a>
<% } elsif ($err eq 'ERROR_ROOM_s_LOCKED' && stash 'ownerPass'){ %>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/password') . '/' . $room %>"><%=l 'AUTH_IF_OWNER' %></a>
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/password') . '/' . $room %>">
<%=l 'AUTH_IF_OWNER' %>
</a>
<% } elsif ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %>
<button class="btn btn-default btn-lg btn-full" style="width: 100%" type="submit" form="createRoom"><%=l 'CREATE_THIS_ROOM' %></button>
<button class="btn btn-default btn-lg btn-full" style="width: 100%" type="submit" form="createRoom">
<%=l 'CREATE_THIS_ROOM' %>
</button>
<% } %>
</div>
</div>