ntopng/httpdocs/templates/pages/components/notes.template
2022-12-23 07:10:56 +01:00

22 lines
No EOL
619 B
Text

<div class="notes bg-light border">
<b>{{ i18n("notes") }}</b>
{% if (not isEmptyString(title)) then %}
<p class='mb-1'>{* title *}</p>
{% end %}
{%
local tag = ternary(is_ordered, "ol", "ul")
%}
<{{tag}}>
{% for i, note in ipairs(notes) do %}
{% if not note.hidden then %}
{% if(type(note.content) == "table") then %}
{% for _, msg in ipairs(note.content) do %}
<li>{* msg *}</li>
{% end %}
{% else %}
<li>{* note.content *}</li>
{% end %}
{% end %}
{% end %}
</{{tag}}>
</div>