Style notifications
This commit is contained in:
4
src/templates/attract/_notifications.jade
Normal file
4
src/templates/attract/_notifications.jade
Normal file
@@ -0,0 +1,4 @@
|
||||
ul#notifications-list
|
||||
li.nc-item
|
||||
#notifications-loader
|
||||
i.pi-spin.spin
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user