{% from 'macros/base.html' import api_button %} Subscriptions Tags Actions Import Videos {% if current_user.admin is defined and current_user.admin %} Admin {% endif %} {% if current_user.is_authenticated %} {{ current_user.username }} Setting Logout {% else %} Login Register {% endif %} {{ api_button( 'Subscribe', 'api_subscription.create', method='POST', form_id='subscribe-form', classes=['my-2', 'my-sm-0'] ) }}