Skip to content

Commit 890677d

Browse files
committed
Remove old references to music/panel rooms
This was breaking Stock's schedule page because Stock doesn't have any panel rooms configured.
1 parent 0055210 commit 890677d

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

uber/templates/schedule/edit.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,7 @@
217217
return;
218218
}
219219

220-
let extraClasses = '';
221-
if ({{ c.PANEL_ROOMS|jsonize }}.includes(eventInfo.id)) {
222-
extraClasses += ' panel-room';
223-
}
224-
if ({{ c.MUSIC_ROOMS|jsonize }}.includes(eventInfo.id)) {
225-
extraClasses += ' music-room';
226-
}
227-
228-
html = `<h2 class="offset-scroll h6 mb-0 p-1${extraClasses}" id="event-${eventInfo.id}">${eventInfo.title}</h2>`;
220+
html = `<h2 class="offset-scroll h6 mb-0 p-1" id="event-${eventInfo.id}">${eventInfo.title}</h2>`;
229221
return {
230222
html: html,
231223
}

uber/templates/schedule/schedule_macros.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{% macro room_class(room) -%}
2-
{%- set is_panels = room in c.PANEL_ROOMS -%}
3-
{%- set is_music = room in c.MUSIC_ROOMS
4-
%} room_{{ room }} {% if is_panels %}panels{% elif is_music %}music{% else %}other{% endif
5-
%} {% endmacro %}
6-
71
{% macro format_time(time) -%}
82
{% if not time.minute %}
93
{{ time|datetime("%-I%p")|lower }}

0 commit comments

Comments
 (0)