From cbb36c3ea44aa4c06c22db43e96633707b67108f Mon Sep 17 00:00:00 2001
From: Your Name
Date: Thu, 20 Apr 2023 13:36:12 -0400
Subject: [PATCH] add calendar grid view
---
catalog/templates/discover.html | 2 +-
catalog/views.py | 11 -
.../lib/css/calendar_yearview_blocks.css | 31 +++
.../static/lib/js/calendar_yearview_blocks.js | 246 ++++++++++++++++++
common/static/sass/_MainSection.sass | 44 ++--
common/templates/partial/_announcement.html | 2 +-
common/templates/partial/_sidebar.html | 26 --
journal/models.py | 40 ++-
journal/templates/calendar_data.html | 1 +
journal/templates/profile.html | 38 ++-
journal/urls.py | 5 +
journal/views.py | 41 +--
management/templates/management/detail.html | 5 +-
management/templates/management/list.html | 19 +-
social/templates/feed.html | 2 +-
social/views.py | 10 +-
users/models.py | 15 ++
17 files changed, 431 insertions(+), 107 deletions(-)
create mode 100644 common/static/lib/css/calendar_yearview_blocks.css
create mode 100644 common/static/lib/js/calendar_yearview_blocks.js
create mode 100644 journal/templates/calendar_data.html
diff --git a/catalog/templates/discover.html b/catalog/templates/discover.html
index 144df49f..1468e3f2 100644
--- a/catalog/templates/discover.html
+++ b/catalog/templates/discover.html
@@ -116,7 +116,7 @@
{% include "partial/_footer.html" %}
- {% if unread_announcements %}
+ {% if request.user.unread_announcements %}
{% include "partial/_announcement.html" %}
{% endif %}
@@ -34,6 +36,38 @@
+ {% if request.user.is_staff %}
+
+ {% endif %}
+
{% for category, category_shelves in shelf_list.items %}
{% for shelf_type, shelf in category_shelves.items %}
@@ -189,7 +223,7 @@
{% include "partial/_footer.html" %}
- {% if unread_announcements %}
+ {% if request.user.unread_announcements %}
{% include "partial/_announcement.html" %}
{% endif %}