<div id="key-download" uk-modal="bg-close:false">
<div class="uk-modal-dialog">
<a class="uk-modal-close-default fas fa-times" type="button"></a>
<div class="uk-modal-header">
<h3 class="uk-modal-title"><%= @server.server_id %> has been registered</h2>
</div>
<div class="uk-modal-body">
<% if @server.v2_ui? %>
<p>
You will need to download this server key file and place it in the <code>@esm</code> mod folder before starting your server.
</p>
<p>
If you modified any advanced settings, you'll also need to download and place the generated <code>config.yml</code> file in the same folder.
</p>
<% else %>
<p>
You will need to download this server key file and place it in the <code>@ESM</code> mod folder before starting your server.
</p>
<% end %>
<p>
For more information on getting started, please check out the <%= link_to "Wiki", wiki_path %>
</p>
<% if @server.v2_ui? %>
<div class="uk-child-width-1-2@m uk-child-width-1-1" uk-grid>
<div>
<%= link_to "Download Server Key",
server_token_community_server_path(current_community.public_id, @server.public_id),
class: "uk-button esm-button uk-width-1-1",
target: "_blank", ":disabled": "processing"
%>
</div>
<div>
<%= link_to "Download Server Config",
server_config_community_server_path(current_community.public_id, @server.public_id),
class: "uk-button esm-button uk-width-1-1",
target: "_blank", ":disabled": "processing"
%>
</div>
</div>
<% else %>
<%= link_to "Download Server Key",
key_community_server_path(current_community.public_id, @server.public_id),
class: "uk-button esm-button-confirm uk-width-auto@m uk-width-1-1",
target: "_blank",
":disabled": "processing"
%>
<% end %>
</div>
<div class="uk-modal-footer">
<% if @server.v2_ui? %>
<small>You can also download both of these files from the Modify Server section</small>
<% else %>
<small>You can also download this key file from the Modify Server section</small>
<% end %>
</div>
</div>
</div>