{% load beam_tags %}


{% if links %}
    <ul>
        {% for link in links.values %}
            {% get_link_url link object as url %}
            {% if url and viewset_context.view_type != link.view_type %}
                <li>
                    <a href="{{ url }}" class="btn btn-secondary">{{ link.verbose_name }}</a>
                </li>
            {% endif %}
        {% endfor %}
    </ul>
{% endif %}