reorganizing

deepsource-autofix-76c6eb20
Dan Gowans 2022-12-21 14:28:34 -05:00
parent 0093e3ee23
commit 1e9161032a
1 changed files with 46 additions and 42 deletions

View File

@ -46,56 +46,60 @@
<% } %> <% } %>
</div> </div>
<div class="panel"> <div class="columns">
<div class="panel-block is-block"> <div class="column">
<p> <div class="panel">
<strong><%= configFunctions.getProperty("aliases.map") %></strong><br /> <div class="panel-block is-block">
<a href="<%= urlPrefix %>/maps/<%= lot.mapId %>"> <div class="columns">
<%= lot.mapName || "(No Name)" %> <div class="column">
</a>
</p>
<div class="columns mt-2">
<div class="column">
<p>
<strong><%= configFunctions.getProperty("aliases.lot") %> Type</strong><br />
<%= lot.lotType %>
</p>
</div>
<div class="column">
<p>
<strong>Status</strong><br />
<%= lot.lotStatus %>
</p>
</div>
<div class="column">
<% if (lot.lotFields.length > 0) { %>
<% for (const lotField of lot.lotFields) { %>
<p class="mb-2"> <p class="mb-2">
<strong><%= lotField.lotTypeField %></strong><br /> <strong><%= configFunctions.getProperty("aliases.map") %></strong><br />
<% if (lotField.lotFieldValue) { %> <a href="<%= urlPrefix %>/maps/<%= lot.mapId %>">
<%= lotField.lotFieldValue %> <%= lot.mapName || "(No Name)" %>
<% } else { %> </a>
<span class="has-text-grey">(No Value)</span>
<% } %>
</p> </p>
<p class="mb-2">
<strong><%= configFunctions.getProperty("aliases.lot") %> Type</strong><br />
<%= lot.lotType %>
</p>
<p>
<strong>Status</strong><br />
<%= lot.lotStatus %>
</p>
</div>
<% if (lot.lotFields.length > 0) { %>
<div class="column">
<% for (const lotField of lot.lotFields) { %>
<p class="mb-2">
<strong><%= lotField.lotTypeField %></strong><br />
<% if (lotField.lotFieldValue) { %>
<%= lotField.lotFieldValue %>
<% } else { %>
<span class="has-text-grey">(No Value)</span>
<% } %>
</p>
<% } %>
</div>
<% } %> <% } %>
<% } %> </div>
</div> </div>
</div> </div>
</div> </div>
<% if (lot.mapSVG) { %>
<div class="column">
<div class="panel">
<h2 class="panel-heading">Image</h2>
<div class="panel-block is-block">
<% const imageURL = urlPrefix + "/images/maps/" + lot.mapSVG %>
<div class="image" id="lot--map" data-map-key="<%= lot.mapKey %>">
<%- include('../public/images/maps/' + lot.mapSVG); -%>
</div>
</div>
</div>
</div>
<% } %>
</div> </div>
<% if (lot.mapSVG) { %>
<div class="panel">
<h2 class="panel-heading">Image</h2>
<div class="panel-block is-block">
<% const imageURL = urlPrefix + "/images/maps/" + lot.mapSVG %>
<div class="image" id="lot--map" data-map-key="<%= lot.mapKey %>">
<%- include('../public/images/maps/' + lot.mapSVG); -%>
</div>
</div>
</div>
<% } %>
<% if (lot.lotComments.length > 0) { %> <% if (lot.lotComments.length > 0) { %>
<div class="panel"> <div class="panel">