17 lines
357 B
Text
17 lines
357 B
Text
|
<section class="listView">
|
||
|
<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>
|