|
|
@ -11,21 +11,21 @@ |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-6 col-lg-4 col-xl-3"> |
|
|
|
<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('/') %>"> |
|
|
|
<a class="btn btn-primary btn-lg btn-full" role="button" href="<%= $self->url_for('/') %>"> |
|
|
|
<%=l 'BACK_TO_MAIN_MENU' %> |
|
|
|
<%=l 'BACK_TO_MAIN_MENU' %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-6 col-lg-4 col-xl-3"> |
|
|
|
<div class="col-sm-6 col-lg-4 col-xl-3"> |
|
|
|
<% if ($err eq 'ERROR_NAME_CONFLICT'){ %> |
|
|
|
<% if ($err eq 'ERROR_NAME_CONFLICT'){ %> |
|
|
|
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/') . $room %>"> |
|
|
|
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/$room") %>"> |
|
|
|
<%=l 'JOIN_THIS_ROOM' %> |
|
|
|
<%=l 'JOIN_THIS_ROOM' %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<% } elsif ($err eq 'WRONG_PASSWORD'){ %> |
|
|
|
<% } elsif ($err eq 'WRONG_PASSWORD'){ %> |
|
|
|
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/password') . '/' . $room %>"> |
|
|
|
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/password/$room") %>"> |
|
|
|
<%=l 'TRY_AGAIN' %> |
|
|
|
<%=l 'TRY_AGAIN' %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<% } elsif ($err eq 'ERROR_ROOM_s_LOCKED' && stash 'ownerPass'){ %> |
|
|
|
<% } 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 %>"> |
|
|
|
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/password/$room") %>"> |
|
|
|
<%=l 'AUTH_IF_OWNER' %> |
|
|
|
<%=l 'AUTH_IF_OWNER' %> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<% } elsif ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
|
|
|
<% } elsif ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
|
|
@ -36,7 +36,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% if ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
|
|
|
<% if ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
|
|
|
<form id="createRoom" action="<%= $self->get_url('/create') %>" method="post"> |
|
|
|
<form id="createRoom"> |
|
|
|
<input type="text" id="roomName" name="roomName" value="<%= $room %>" hidden/> |
|
|
|
<input type="text" id="roomName" name="roomName" value="<%= $room %>" hidden/> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|