Fix: Gmail SMTP guidance, registration form field, and conditional admin auto-refresh

This commit is contained in:
ske087
2025-07-27 00:15:39 +03:00
parent 377e379883
commit c9c3c80f4f
4 changed files with 45 additions and 6 deletions

View File

@@ -229,10 +229,18 @@
document.getElementById('sidebar').classList.toggle('show');
});
// Auto-refresh stats every 30 seconds
setTimeout(function() {
location.reload();
}, 30000);
// Conditional auto-refresh logic
{% if request.endpoint == 'admin.mail_settings' %}
{% if settings and settings.enabled %}
setTimeout(function() {
location.reload();
}, 30000);
{% endif %}
{% else %}
setTimeout(function() {
location.reload();
}, 30000);
{% endif %}
</script>
</body>
</html>