"text-center"><i class="fa-solid fa-spinner fa-spin"></i></div>');
                        $.get("{% url 'alerts_json' %}?limit=12", function (data) {
                            $('.dropdown-alerts').empty();
                            $.each(data, function(i, elem) {
                            var titleField = elem.fields.title ? elem.fields.title : elem.fields.description;
                            var display_title = titleField.length < 50 ? titleField : titleField.trim().substring(0,50).trim(this) 