{% macro render_make_me_moderator(event, vc_room, event_vc_room) %}
    {% if event.canUserModify(session.user) and session.user.id != vc_room.data['owner'][1] %}
        <a class="i-button i-button-small highlight arrow" data-toggle="dropdown"></a>
        <ul class="dropdown" data-level="level1">
            <li>
                <a href="#"
                   title="{% trans name=vc_room.data.owner_identity %}You will be the moderator of this Vidyo room, replacing {{name}}.{% endtrans %}"
                   class="action-make-moderator" data-href="{{ url_for('vc.vc_room_modify', event_vc_room) }}">
                    {% trans %}Make me moderator{% endtrans %}
                </a>
            </li>
        </ul>
    {% endif %}
{% endmacro %}

{% macro render_join_button(vc_room, extra_classes="") %}
    <a class="i-button highlight {{ extra_classes }}"
       href="{{ vc_room.data.url }}">
        {% trans %}Join{% endtrans %}
    </a>
{% endmacro %}

{% macro render_make_me_moderator(event, vc_room, event_vc_room) %}
    {% if event.canUserModify(session.user) and session.user.id != vc_room.data['owner'][1] %}
        <a class="i-button i-button-small highlight arrow" data-toggle="dropdown"></a>
        <ul class="dropdown" data-level="level1">
            <li>
                <a href="#"
                   title="{% trans name=vc_room.data.owner_identity %}You will be the moderator of this Vidyo room, replacing {{name}}.{% endtrans %}"
                   class="action-make-moderator" data-href="{{ url_for('vc.vc_room_modify', event_vc_room) }}">
                    {% trans %}Make me moderator{% endtrans %}
                </a>
            </li>
        </ul>
    {% endif %}
{% endmacro %}

{% macro render_join_button(vc_room, extra_classes="") %}
    <a class="i-button highlight {{ extra_classes }}"
       href="{{ vc_room.data.url }}" target="_blank">
        {% trans %}Join{% endtrans %}
    </a>
{% endmacro %}

Join VC in new tab (target="_blank")
VC/Vidyo: Join VC in new tab (target="_blank")
