<% if (m.layer == 'start_layer') { %>

Options

<% } else if (m.layer == 'background') { %>
<% if (!m.itemSelected && !m.multiItemSelected) { %>

Editing the background

<% } else if (m.itemSelected) { %>

Background item options

Opacity:

<% } else if (m.multiItemSelected) { %>

Background multi-item options

<% } %>
<% } else if (m.layer == 'foreground') { %>
<% if (!m.itemSelected) { %>

Editing the foreground

<% if (m.is_system_schematic) { %>
<% } %>
<% } %>
<% } %>