abtmtr-comms/views/components/compareView.ejs

18 lines
449 B
Text
Raw Permalink Normal View History

2024-10-06 07:20:01 +00:00
<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>