Added GA/Clubs Google Calendar to main page (#585)

* Added GA/Clubs google calendar to main page

* Made tables full width
This commit is contained in:
Julien Constant 2023-04-03 15:54:12 +02:00 committed by GitHub
parent 28f397574f
commit 1f10a284f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 6 deletions

View File

@ -8,13 +8,13 @@
{% block content %} {% block content %}
{% if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %} {% if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<div id="news_admin"> <div id="news_admin">
<a href="{{ url('com:news_admin_list') }}">{% trans %}Administrate news{% endtrans %}</a> <a class="button" href="{{ url('com:news_admin_list') }}">{% trans %}Administrate news{% endtrans %}</a>
</div> </div>
<br>
{% endif %} {% endif %}
<div id="news"> <div id="news">
<div id="left_column" class="news_column"> <div id="left_column" class="news_column">
{% for news in object_list.filter(type="NOTICE") %} {% for news in object_list.filter(type="NOTICE") %}
<section class="news_notice"> <section class="news_notice">
<h4><a href="{{ url('com:news_detail', news_id=news.id) }}">{{ news.title }}</a></h4> <h4><a href="{{ url('com:news_detail', news_id=news.id) }}">{{ news.title }}</a></h4>
@ -97,6 +97,15 @@
</section> </section>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<h3>{% trans %}All coming events{% endtrans %}</h3>
<iframe
src="https://embed.styledcalendar.com/#2mF2is8CEXhr4ADcX6qN"
title="Styled Calendar"
class="styled-calendar-container"
style="width: 100%; border: none; height: 1060px"
data-cy="calendar-embed-iframe">
</iframe>
</div> </div>
<div id="right_column" class="news_column"> <div id="right_column" class="news_column">

View File

@ -23,6 +23,10 @@
flex-direction: row; flex-direction: row;
gap: 10px; gap: 10px;
> a {
color: #fff;
}
&:hover > a { &:hover > a {
color: #1a78b3; color: #1a78b3;
} }

View File

@ -48,6 +48,7 @@ body {
font-family: sans-serif; font-family: sans-serif;
} }
a.button,
button, button,
input[type="button"], input[type="button"],
input[type="submit"], input[type="submit"],
@ -60,11 +61,13 @@ input[type="file"] {
margin: 0.1em; margin: 0.1em;
font-size: 1.2em; font-size: 1.2em;
border-radius: 5px; border-radius: 5px;
color: black;
&:hover { &:hover {
background: hsl(0, 0%, 83%); background: hsl(0, 0%, 83%);
} }
} }
a.button,
input[type="button"], input[type="button"],
input[type="submit"], input[type="submit"],
input[type="reset"], input[type="reset"],
@ -72,6 +75,7 @@ input[type="file"] {
font-weight: bold; font-weight: bold;
} }
a.button:not(:disabled),
button:not(:disabled), button:not(:disabled),
input[type="button"]:not(:disabled), input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled), input[type="submit"]:not(:disabled),
@ -111,7 +115,8 @@ select {
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
} }
a {
a:not(.button) {
text-decoration: none; text-decoration: none;
color: $primary-dark-color; color: $primary-dark-color;
&:hover { &:hover {
@ -348,7 +353,11 @@ a {
/*---------------------------------NEWS--------------------------------*/ /*---------------------------------NEWS--------------------------------*/
#news { #news {
display: flex; display: flex;
flex-wrap: wrap;
@media (max-width: 800px) {
flex-direction: column;
}
.news_column { .news_column {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
@ -970,7 +979,7 @@ blockquote h5:first-child {
} }
table { table {
width: 90%; width: 100%;
margin: 15px auto; margin: 15px auto;
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
@ -1403,7 +1412,7 @@ footer {
padding: 0.8em; padding: 0.8em;
flex: 1; flex: 1;
font-weight: bold; font-weight: bold;
color: $white-color; color: $white-color !important;
&:hover { &:hover {
color: $primary-dark-color; color: $primary-dark-color;
} }

View File

@ -1713,6 +1713,10 @@ msgstr "Administrer les news"
msgid "Events today and the next few days" msgid "Events today and the next few days"
msgstr "Événements aujourd'hui et dans les prochains jours" msgstr "Événements aujourd'hui et dans les prochains jours"
#: com/templates/com/news_list.jinja:100
msgid "All coming events"
msgstr "Tous les événements à venir"
#: com/templates/com/news_list.jinja:82 #: com/templates/com/news_list.jinja:82
msgid "Nothing to come..." msgid "Nothing to come..."
msgstr "Rien à venir..." msgstr "Rien à venir..."