fix: EJS ternary syntax in version fields
This commit is contained in:
@@ -200,7 +200,7 @@
|
||||
<div style="font-size:10px;color:#666;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:6px;">📦 Installed Version</div>
|
||||
<div style="display:flex;gap:6px;align-items:center;" id="version-display-<%= server.identifier %>">
|
||||
<span style="font-size:13px;font-weight:600;color:<%= (config && config.current_version) ? '#4ade80' : '#555' %>">
|
||||
<%= (config && config.current_version) ? config.current_version : 'Not set' %>
|
||||
<%= config <%= (config && config.current_version) ? config.current_version : 'Not set' %><%= (config && config.current_version) ? config.current_version : 'Not set' %> config.current_version ? config.current_version : 'Not set' %>
|
||||
</span>
|
||||
<button id="version-edit-btn-<%= server.identifier %>"
|
||||
onclick="toggleVersionForm('<%= server.identifier %>')"
|
||||
@@ -211,7 +211,7 @@
|
||||
<div id="version-form-<%= server.identifier %>" style="display:none;margin-top:6px;">
|
||||
<div style="display:flex;gap:6px;align-items:center;">
|
||||
<input type="text" id="version-input-<%= server.identifier %>"
|
||||
placeholder="e.g. 1.4.2" value="<%= (config && config.current_version) ? config.current_version : '' %>"
|
||||
placeholder="e.g. 1.4.2" value="<%= config value="<%= (config && config.current_version) ? config.current_version : '' %>"value="<%= (config && config.current_version) ? config.current_version : '' %>" config.current_version ? config.current_version : '' %>"
|
||||
style="font-size:12px;background:#1a1a1a;border:1px solid #555;color:#e0e0e0;padding:4px 8px;border-radius:4px;width:140px;" />
|
||||
<button onclick="saveVersion('<%= server.identifier %>')"
|
||||
style="font-size:11px;background:#2563eb;color:#fff;border:none;padding:4px 10px;border-radius:4px;cursor:pointer;">Save</button>
|
||||
@@ -434,7 +434,7 @@
|
||||
<div style="font-size:10px;color:#666;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:6px;">📦 Installed Version</div>
|
||||
<div style="display:flex;gap:6px;align-items:center;" id="version-display-<%= server.identifier %>">
|
||||
<span style="font-size:13px;font-weight:600;color:<%= (config && config.current_version) ? '#4ade80' : '#555' %>">
|
||||
<%= (config && config.current_version) ? config.current_version : 'Not set' %>
|
||||
<%= config <%= (config && config.current_version) ? config.current_version : 'Not set' %><%= (config && config.current_version) ? config.current_version : 'Not set' %> config.current_version ? config.current_version : 'Not set' %>
|
||||
</span>
|
||||
<button id="version-edit-btn-<%= server.identifier %>"
|
||||
onclick="toggleVersionForm('<%= server.identifier %>')"
|
||||
@@ -445,7 +445,7 @@
|
||||
<div id="version-form-<%= server.identifier %>" style="display:none;margin-top:6px;">
|
||||
<div style="display:flex;gap:6px;align-items:center;">
|
||||
<input type="text" id="version-input-<%= server.identifier %>"
|
||||
placeholder="e.g. 1.4.2" value="<%= (config && config.current_version) ? config.current_version : '' %>"
|
||||
placeholder="e.g. 1.4.2" value="<%= config value="<%= (config && config.current_version) ? config.current_version : '' %>"value="<%= (config && config.current_version) ? config.current_version : '' %>" config.current_version ? config.current_version : '' %>"
|
||||
style="font-size:12px;background:#1a1a1a;border:1px solid #555;color:#e0e0e0;padding:4px 8px;border-radius:4px;width:140px;" />
|
||||
<button onclick="saveVersion('<%= server.identifier %>')"
|
||||
style="font-size:11px;background:#2563eb;color:#fff;border:none;padding:4px 10px;border-radius:4px;cursor:pointer;">Save</button>
|
||||
|
||||
Reference in New Issue
Block a user