Don't conflate fields with tables

This commit is contained in:
peelz
2022-08-03 21:34:42 -04:00
parent 512b95d89c
commit 2f5add1999
4 changed files with 21 additions and 37 deletions
+16 -2
View File
@@ -74,14 +74,28 @@ end
{% end %}
{% end %}
{% if not isSectionEmpty(currentMod, {"field", "table"}) then %}
{% if not isSectionEmpty(currentMod, "table") then %}
<li>
<label class="colorful-label">TABLES</label>
</li>
{% end %}
{% for k, v in pairs(currentMod.items) do %}
{% if (v.section_id == "table") then %}
<li>
{* ldoc.sidebar_item(v, currentMod) *}
</li>
{% end %}
{% end %}
{% if not isSectionEmpty(currentMod, "field") then %}
<li>
<label class="colorful-label">FIELDS</label>
</li>
{% end %}
{% for k, v in pairs(currentMod.items) do %}
{% if (v.section_id == "field" or v.section_id == "table") then %}
{% if (v.section_id == "field") then %}
<li>
{* ldoc.sidebar_item(v, currentMod) *}
</li>