Skip to content
Snippets Groups Projects
Commit 3d8eed1b authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Added caption to planning

parent 3684cbe2
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
- Added links to more games
- Fix typos
- Added colors to planning
- Added caption to planning, can be set in site_settings
## Version 1.2.0 - 2021-04-07
......
......@@ -194,3 +194,8 @@ I.E we set all dates to the first day (Friday) and set groups allowing vertical
}
</style>
{% if settings.planning_caption %}
<div class="caption">
{{ settings.planning_caption|safe }}
</div>
{% endif %}
......@@ -86,6 +86,11 @@ class SiteSettings(SingletonModel):
help_text="Assurez vous que le message est bien formaté, cela peut casser toutes les pages du site",
)
planning_caption = models.TextField("Légende du planning", blank=True, null=True,
help_text="Légende du planning (au format HTML). Les couleurs sont accessibles dans le style"
"via var(--color_1), var(--color_1_fg) et var(--color_1_hover)"
)
@property
def contact_email_reversed(self) -> str:
return self.contact_email[::-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment