abtmtr-comms/views/components/compareView.ejs
2024-10-06 02:20:01 -05:00

18 lines
No EOL
449 B
Text

<section class="compareView">
<img src="<%= image %>" alt="<%= alt %>" title="<%= alt %>" width="256" height="128"/>
<h2><%= title %></h2>
<ul>
<% description.forEach(([ summary, content ]) => { %>
<li>
<% if (content) { %>
<details>
<summary><%= summary %></summary>
<p><%= content %></p>
</details>
<% } else { %>
<span><%= summary %></span>
<% } %>
</li>
<% }) %>
</ul>
</section>