2014-04-26 00:20:34 +00:00
|
|
|
<h1 class="fancy">
|
|
|
|
<span><%= h @server.name %></span>
|
2014-03-23 00:22:25 +00:00
|
|
|
</h1>
|
|
|
|
|
2014-04-26 00:20:34 +00:00
|
|
|
<% if map = Map.find_by_name(@server.map) and map.picture.length > 0 %>
|
|
|
|
<div class="preview">
|
|
|
|
<%= image_tag map.picture %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 00:20:34 +00:00
|
|
|
<p>
|
|
|
|
<strong>IP:</strong>
|
|
|
|
<%= link_to @server.addr, "steam://connect/#{@server.addr}" %>
|
|
|
|
</p>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 00:20:34 +00:00
|
|
|
<%= cascade @server, ["dns", "password", "irc", ["Owner", :user], "description"] %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
<% if @server.can_update? cuser %>
|
2014-04-26 00:20:34 +00:00
|
|
|
<%= link_to 'Edit Server', edit_server_path(@server), class: 'button' %>
|
2014-04-27 02:11:47 +00:00
|
|
|
<%= link_to 'Delete Server', @server, confirm: 'Are you sure?', method: :delete, class: 'button' %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% if @server.domain == Server::DOMAIN_HLTV %>
|
2014-04-26 00:20:34 +00:00
|
|
|
<%= link_to 'Default Record', action: "default", id: @server, class: 'button' %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|