<%= h @server.name %>

<% if map = Map.find_by_name(@server.map) and map.picture.length > 0 %>
<%= image_tag map.picture %>
<% end %>

IP: <%= link_to @server.addr, "steam://connect/#{@server.addr}" %>

<%= cascade @server, ["dns", "password", "irc", ["Owner", :user], "description"] %> <% if @server.can_update? cuser %> <%= link_to 'Edit Server', edit_server_path(@server), class: 'button' %> <%= link_to 'Delete Server', @server, confirm: 'Are you sure?', method: :delete, class: 'button' %> <% if @server.domain == Server::DOMAIN_HLTV %> <%= link_to 'Default Record', action: "default", id: @server, class: 'button' %> <% end %> <% end %>