Fixed ejs ending tags

This commit is contained in:
Hygna 2022-09-14 21:04:27 +01:00
parent 09b2b96116
commit e867e2e0a5
1 changed files with 14 additions and 14 deletions

View File

@ -1,30 +1,30 @@
<% config.services.forEach(service=>{ %>
<section class="option-block" id="<%= service =%>_page"</section>
<section class="option-block" id="<%= service %>_page"</section>
<div class="some-block option-block">
<h1 data-localise="__MSG_<%= service =%>__"><%= config.services[service].name =%></h1>
<h1 data-localise="__MSG_<%= service %>__"><%= config.services[service].name %></h1>
</div>
<hr>
<div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4>
<input id="<%= service =%>-enable" type="checkbox">
<input id="<%= service %>-enable" type="checkbox">
</div>
<div class="some-block option-block">
<h4 data-localise="__MSG_frontend__">Frontend</h4>
<select id="<%= service =%>-frontend">
<select id="<%= service %>-frontend">
<% config.services[service].frontends.forEach(frontend=>{ %>
<option value="<%= frontend =%>"><%= frontend =%></option>
<option value="<%= frontend %>"><%= frontend %></option>
<% }); %>
<% config.services[service].singleInstanceFrontends.forEach(frontend=>{ %>
<option value="<%= frontend =%>"><%= frontend =%></option>
<option value="<%= frontend %>"><%= frontend %></option>
<% }); %>
</select>
</div>
<% if (config.services[service].embeddable) { %>
<% if (config.services[service].singleInstanceFrontends) { %>
<div id="<%= service =%>-embedded_frontend">
<div id="<%= service %>-embedded_frontend">
<div class="some-block option-block">
<h4 data-localise="__MSG_embeddedVids__">Embedded Videos Frontend</h4>
<select id="<%= service =%>-embed_frontend">
<select id="<%= service %>-embed_frontend">
<% config.services[service].frontends.forEach(frontend=>{ %>
<option value="frontend">frontend</option>
<% }); %>
@ -43,9 +43,9 @@
<% } %>
<hr>
<% config.services[service].frontends.forEach(frontend=>{ %>
<div id="<%= frontend =%>">
<div id="<%= frontend %>">
<% config.networks.forEach(network=>{ %>
<div class="<%= network =%>">
<div class="<%= network %>">
<div class="some-block option-block">
<h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
@ -56,7 +56,7 @@
</div>
<form class="custom-instance-form">
<div class="some-block option-block">
<input class="custom-instance" placeholder="http://<%= frontend =%>.<%= config[network].tld =%>" type="url">
<input class="custom-instance" placeholder="http://<%= frontend %>.<%= config[network].tld %>" type="url">
<button class="add add-instance" type="submit">
<svg xmlns="https://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path>
@ -67,13 +67,13 @@
<div class="checklist custom-checklist"></div>
<% if (network == "clearnet") { %>
<div class="buttons buttons-inline">
<label class="button button-inline" id="latency-<%= frontend =%>-label" for="latency-<%= frontend =%>">
<label class="button button-inline" id="latency-<%= frontend %>-label" for="latency-<%= frontend %>">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path>
</svg>&nbsp;
<x data-localise="__MSG_testInstancesLatency__">Test Instances Latency</x>
</label>
<input class="button button-inline" id="latency-<%= frontend =%>" style="display:none;">
<input class="button button-inline" id="latency-<%= frontend %>" style="display:none;">
</div>
<% } %>
</div>
@ -81,4 +81,4 @@
<% }); %>
</section>
<% }); %>
<script type="module" src="./widgets/services.js"></script>
<script type="module" src="./widgets/services.js"></script>