metadata' %} class="active"{% endif %}>
                        <a href="{{ object.get_absolute_url }}#object_metadata" onclick="switch_tab(this.href)" aria-controls="object_metadata" role="tab" data-toggle="tab">
                            Object Metadata {% badge om_count %}
                        </a>
                    </li>
                {% endif %}
            {% endwith %}
        {% endif %}
      {% endif %}
        {% if perms.extras.view_note %}
            {% if active_tab != 'notes' and ob