Skip to content

Commit b1c357f

Browse files
committed
Swap custom calendar to google cal iframe
1 parent cafa7d6 commit b1c357f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

core/static/core/css/calendar/view.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
#iframe-parent {
2+
display: flex;
3+
justify-content: center;
4+
}
5+
6+
#iframe-cal {
7+
border: solid 1px var(--dark-colour);
8+
width: 100%;
9+
border-radius: 5px;
10+
}
11+
112
#calendar {
213
padding: 3%;
314
background-color: white;

core/templates/core/calendar/view.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@
1010
type="text/css">
1111
<script src="{% static 'core/js/calendar/view.js' %}"></script>
1212
{% endblock %}
13+
14+
{% block main %}
15+
<div class="container" id="iframe-parent">
16+
<iframe
17+
id="iframe-cal"
18+
frameborder="0"
19+
scrolling="no"
20+
loa
21+
src="https://calendar.google.com/calendar/u/0/embed?wkst=1&ctz=America/Toronto&showPrint=0&src=dGRzYi5vbi5jYV9scXNjdGFrb2hlc24xaDZpODZuY2RrNzlvNEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t">
22+
</iframe>
23+
</div>
24+
{% endblock %}
25+
26+
{# Hopefully some day we will bring this back #}
27+
{% comment %}
1328
{% block main %}
1429
<div class="container">
1530
<div id="inlineContainer">
@@ -49,3 +64,4 @@ <h4 class="event_title"></h4>
4964
</table>
5065
</template>
5166
{% endblock %}
67+
{% endcomment %}

0 commit comments

Comments
 (0)