Skip to content

Commit

Permalink
Yet Another small events calendar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelmdLow committed Sep 21, 2024
1 parent fd6f95a commit 70c7a80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ async def update_events(request):
'categorize': {
'default': 'community',
'seminar_type': [633, 632, 634, 528, 530],
'hidden_title_terms': ['coffee hour']
'hidden_title_terms': ['coffee hour'],
'seminar_title_terms': ['Archaeology Lab Nights'],
},
},

Expand Down
4 changes: 2 additions & 2 deletions ubyssey/static_src/src/js/components/Events/calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function EventsCalendar({events}) {
var cur = new Date(event.start_time);
cur.setHours(0,0,0,0);
event.displayTime = displayTime(event.start_time);
if (event.end_time.getTime() - event.start_time.getTime() >= d-h || event.end_time.getTime() == event.start_time.getTime()) {
if (event.end_time.getTime() - event.start_time.getTime() >= d-h || event.start_time.getHours() == 0) {
event.displayTime = "";
}
while(cur <= new Date(event.end_time)) {
Expand Down Expand Up @@ -478,7 +478,7 @@ function EventInfo({events}) {
if (event.description == null) {
event.description = "";
}
document.getElementsByTagName("title")[0].innerHTML = event.title;
document.getElementsByTagName("title")[0].innerHTML = event.title.replace("<br>", "- ") + " - Ubyssey Events Around Campus";
break;
}
}
Expand Down
1 change: 0 additions & 1 deletion ubyssey/static_src/src/styles/components/events/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ div.day{
margin: 0;
padding: 0;
list-style: none;
overflow: clip;
li {
margin: 0.3em 0;
padding-inline: 0.25em;
Expand Down

0 comments on commit 70c7a80

Please sign in to comment.