From aa6bfb62ae9f7c88ec5faa227473eee339f88d26 Mon Sep 17 00:00:00 2001 From: Merlin Buczek Date: Sat, 14 Sep 2019 09:28:33 +0200 Subject: [PATCH] Add ICS download button --- mpicms/static/css/custom.css | 12 ++++++++++++ mpicms/templates/events/event_index.html | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/mpicms/static/css/custom.css b/mpicms/static/css/custom.css index 103aa03..c48a1b4 100644 --- a/mpicms/static/css/custom.css +++ b/mpicms/static/css/custom.css @@ -527,6 +527,18 @@ body { padding: 1rem; } +.cal-button { + color: #fff !important; + background-color: #2c3e50; + border-color: #2c3e50; + +} + +.cal-button:hover { + background-color: #1a252f; + border-color: #151e27; +} + /* Pagination */ .is-current { background-color: transparent !important; diff --git a/mpicms/templates/events/event_index.html b/mpicms/templates/events/event_index.html index 255a703..fbd54c0 100644 --- a/mpicms/templates/events/event_index.html +++ b/mpicms/templates/events/event_index.html @@ -1,5 +1,5 @@ {% extends 'base/page.html' %} -{% load event_tags %} +{% load event_tags i18n %} {% block content %}
@@ -7,6 +7,9 @@

{{ page.title }}

+
+ {% trans 'Download ICS' %} +