def set_all_notifications_seen(obj_response):
# set all as seen in the database:
current_user.set_all_notifications_seen()
# make the notifications bell white
obj_response.script('$("#notifications_bell").attr("class", "glyphicon glyphicon-bell")')
# update the notifications dropdown
render_dropdown = get_template_attribute('macros.html', 'render_notifications_dropdown')
obj_response.html('#notifications_dropdown', render_dropdown(current_user).unescape())
评论列表
文章目录