ensl.org/app/views/servers/_response.xml.erb

7 lines
No EOL
261 B
Text

<% @server.logs.recent.reverse_each do |log| %>
<% if log.domain == Log::DOMAIN_RCON_COMMAND %>
<pre class="command"><%= log.text %></pre>
<% elsif log.domain == Log::DOMAIN_RCON_RESPONSE %>
<pre class="response"><%= log.text %></pre>
<% end %>
<% end %>