2014-03-23 00:22:25 +00:00
|
|
|
<h1>
|
|
|
|
RCON: <%= h @server %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<%= image_tag "icons/spinner.gif",
|
|
|
|
:align => "absmiddle",
|
|
|
|
:id => "spinner",
|
|
|
|
:style =>"display: none;" %>
|
|
|
|
|
|
|
|
<div class="wide box" id="serverLog">
|
|
|
|
<%= render :partial => "response" %>
|
|
|
|
</div>
|
|
|
|
|
2014-03-30 22:32:11 +00:00
|
|
|
<% form_tag remote: true, update: 'serverLog',
|
2014-03-23 00:22:25 +00:00
|
|
|
:before => "Element.show('spinner')",
|
|
|
|
:success => "Element.hide('spinner'); $('serverLog').scrollTop = $('serverLog').scrollHeight;" do %>
|
|
|
|
<%= label_tag :query, "Rcon Command:" %>
|
|
|
|
<%= text_field_tag "query", params['query'], :size => 30 %>
|
|
|
|
<% end %>
|