[UPDT] BASE: Updated announcement page empty style
This commit is contained in:
@@ -148,12 +148,9 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="oh-empty h-100">
|
||||
<p class="oh-empty__message">
|
||||
<img style="width: 80px;height: 80px; margin-bottom:20px"
|
||||
src="{% static 'images/ui/no-announcement.svg' %}" class="oh-404__image"
|
||||
alt="Page not found. 404." />
|
||||
{% trans "No Announcements to show." %}
|
||||
</p>
|
||||
<img src="{% static 'images/ui/search.svg' %}" class="oh-404__image" alt="Page not found. 404." />
|
||||
<h1 class="oh-empty__title">{% trans "No Records found." %}</h1>
|
||||
<p class="oh-empty__subtitle">{% trans "There are no announcements at the moment." %}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
<div class="oh-sticky-table" style="height:400px; border:none;">
|
||||
<div class="oh-sticky-table__table oh-table--sortable">
|
||||
<div class="oh-sticky-table__tbody">
|
||||
{% if not announcements %}
|
||||
<div style="margin-top:30%">
|
||||
<div class="oh-404" style="position:revert; transform:none">
|
||||
<img style="width: 80px;height: 80px; margin-bottom:20px"
|
||||
src="{% static 'images/ui/no-announcement.svg' %}" class="oh-404__image"
|
||||
alt="Page not found. 404." />
|
||||
<h5 class="oh-404__subtitle">{% trans "No Announcements to show." %}</h5>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
{% if not announcements %}
|
||||
<div class="oh-empty h-100" style="padding-top: 50px;">
|
||||
<img src="{% static 'images/ui/search.svg' %}" class="oh-404__image" alt="Page not found. 404." />
|
||||
<h1 class="oh-empty__title">{% trans "No Records found." %}</h1>
|
||||
<p class="oh-empty__subtitle">{% trans "There are no announcements at the moment." %}</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="oh-sticky-table" style="height:400px; border:none;">
|
||||
<div class="oh-sticky-table__table oh-table--sortable">
|
||||
<div class="oh-sticky-table__tbody">
|
||||
{% for announcement in announcements %}
|
||||
<div class="oh-sticky-table__tr" draggable="true">
|
||||
<div class="announcement_title">
|
||||
@@ -30,7 +27,7 @@
|
||||
{% if announcement.created_at|date:"Y-m-d" == current_date and request.user not in announcement.viewed_by %}
|
||||
<span class="oh-profile__info-value ms-2" id="newTab"
|
||||
style="background-color: hsl(8,77%,56%); color:white;
|
||||
font-size: 0.7rem; padding: 3px 8px; border-radius: 15px; font-weight: 800; width:auto;">
|
||||
font-size: 0.7rem; padding: 3px 8px; border-radius: 15px; font-weight: 800; width:auto;">
|
||||
{% trans "NEW" %}
|
||||
</span>
|
||||
{% endif %}
|
||||
@@ -38,7 +35,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -350,3 +350,7 @@ _("project-view"),
|
||||
_("task-view"),
|
||||
_("task-all"),
|
||||
_("view-time-sheet"),
|
||||
_("backup"),
|
||||
_("gdrive"),
|
||||
_("horilla-theme"),
|
||||
_("color-settings"),
|
||||
|
||||
Reference in New Issue
Block a user