backup before mayor changes
This commit is contained in:
@@ -48,6 +48,11 @@
|
||||
<a href="{% url 'announcements:list' %}">
|
||||
<i class="fas fa-bullhorn"></i><span class="nav-text"> Announcements</span>
|
||||
</a>
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'library:project_create' %}">
|
||||
<i class="fas fa-upload"></i><span class="nav-text"> Upload</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</nav>
|
||||
</div>
|
||||
@@ -146,6 +151,21 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<script>
|
||||
(function () {
|
||||
const banner = document.querySelector('.messages-banner');
|
||||
if (!banner) return;
|
||||
const dismiss = () => {
|
||||
if (banner.dataset.dismissing) return;
|
||||
banner.dataset.dismissing = '1';
|
||||
banner.style.transition = 'opacity 0.4s ease';
|
||||
banner.style.opacity = '0';
|
||||
setTimeout(() => banner.remove(), 450);
|
||||
};
|
||||
banner.addEventListener('click', dismiss);
|
||||
setTimeout(dismiss, 6000);
|
||||
})();
|
||||
</script>
|
||||
{% block extra_js %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user