Style notifications

This commit is contained in:
2016-10-20 17:12:17 +02:00
parent 3fbc328c19
commit af0fab5d81
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
ul#notifications-list
li.nc-item
#notifications-loader
i.pi-spin.spin

View File

@@ -186,4 +186,14 @@ html(lang="en")
{% if project %}
$('.help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
{% endif %}
$(document).ready(function() {
{% if current_user.is_authenticated %}
getNotificationsLoop(); // Check for new notifications in the background
// Resize #notifications and change overflow for scrollbars
$(window).on("resize", function() { notificationsResize(); });
{% endif %}
});
| {% block footer_scripts %}{% endblock %}