{% comment %} Renders the Dropdown Footer plugin's HTML. {% endcomment %} {% load i18n %} {% block code %} html: function (data) { let footer = '' footer += `
{% if "view_create_url" in widget and widget.view_create_url %} {{ widget.plugins.dropdown_footer.create_view_label|escapejs }} {% endif %} {% if "view_list_url" in widget and widget.view_list_url %} {{ widget.plugins.dropdown_footer.list_view_label|escapejs }} {% endif %}
` return footer }, {% endblock code %}