diff --git a/base/templates/announcement/announcements_list.html b/base/templates/announcement/announcements_list.html index d18f5c03a..00f67e943 100644 --- a/base/templates/announcement/announcements_list.html +++ b/base/templates/announcement/announcements_list.html @@ -1,8 +1,10 @@ -{% load static %} -{% load i18n %} +{% load static i18n %} + +{% now "Y-m-d" as current_date %} + {% if not announcements %}
- Page not found. 404. + 404

{% trans "No Records found." %}

{% trans "There are no announcements at the moment." %}

@@ -25,9 +27,17 @@ {{announcement.title}} {% if announcement.created_at|date:"Y-m-d" == current_date and request.user not in announcement.viewed_by %} - + {% trans "NEW" %} {% endif %} @@ -39,3 +49,8 @@ {% endif %} + diff --git a/templates/dashboard.html b/templates/dashboard.html index 64ca5028b..acc03b9fc 100755 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -974,10 +974,6 @@ }); }); - function closeNew(anchorElement) { - $(anchorElement).parent().find('#newTab').hide(); - } - var w = c.width = window.innerWidth, h = c.height = window.innerHeight, ctx = c.getContext('2d'),