11{{ define "main" }}
2- < script async src ="https://events.dasharo.com/widget.js "> </ script >
32{{ range .Params.all_events }}
43 {{ range .events }}
54 {{ if .pretalx_url }}
@@ -123,7 +122,7 @@ <h2 class="accordion-header">
123122 {{ partial "image.html" (dict "Src" .event_poster "Alt" (.title | plainify)) }}
124123 </ div >
125124 {{ end }}
126- < div class ="text-start py-4 space-y-4 ">
125+ < div class ="text-start pb-2 space-y-4 ">
127126 {{ .event_description | markdownify }}
128127 </ div >
129128 </ div >
@@ -177,7 +176,7 @@ <h4><strong>{{.date}}</strong></h4>
177176 {{ end }}
178177
179178 {{ if or .event_description .pretalx_url }}
180- < div class ="row mt-4 ">
179+ < div class ="row mt-2 ">
181180 < div class ="col-12 text-center ">
182181 < button class ="btn btn-primary btn-sm mb-3 " type ="button " data-bs-toggle ="collapse " data-bs-target ="#{{$detailsId}} " aria-expanded ="false " aria-controls ="{{$detailsId}} ">
183182 < span class ="text-show "> Show Archived Details & Resources</ span >
@@ -214,8 +213,17 @@ <h4><strong>{{.date}}</strong></h4>
214213
215214{{ define "event-widgets" }}
216215 {{ $link := replace (.title | plainify | urlize) "." ""}}
216+
217+ {{ if .tickets_url }}
218+ < div class ="row mt-2 justify-content-center ">
219+ < div class ="text-center ">
220+ < a href ="{{ .tickets_url }} " target ="_blank " rel ="noopener " class ="btn btn-primary w-100 "> GET TICKETS</ a >
221+ </ div >
222+ </ div >
223+ {{ end }}
224+
217225 {{ if .pretalx_url }}
218- < div class ="row mt-4 pretalx-schedule-container justify-content-center ">
226+ < div class ="row mt-2 pretalx-schedule-container justify-content-center ">
219227 < div class ="col-12 d-flex justify-content-center ">
220228 < pretalx-schedule event-url ="{{ .pretalx_url }} " locale ="en " format ="{{ .pretalx_format }} " style ="--pretalx-clr-primary: #3aa57c "> </ pretalx-schedule >
221229 < noscript >
@@ -230,28 +238,9 @@ <h4><strong>{{.date}}</strong></h4>
230238 </ div >
231239 {{ end }}
232240
233- {{ if .tickets_url }}
234- {{ $event_id := .tickets_url | replaceRE `.*event/(\d+)/.*` "$1" }}
235- < div
236- data-hievents-id ="{{ $event_id }} "
237- data-hievents-primary-color ="#38d430 "
238- data-hievents-primary-text-color ="#000000 "
239- data-hievents-secondary-color ="#38d430 "
240- data-hievents-secondary-text-color ="#ffffff "
241- data-hievents-background-color ="#ffffff "
242- data-hievents-widget-type ="widget "
243- data-hievents-widget-version ="1.0 "
244- data-hievents-locale ="en "
245- data-hievents-padding ="20px "
246- data-hievents-autoresize ="true "
247- data-hievents-continue-button-text ="Continue "
248- class ="hievents-widget ">
249- </ div >
250- {{ end }}
251-
252241 {{ if .subscription_id }}
253242 {{ $form_title := printf "If you are interested in receiving updates about this event, \njoin \"**%s**\" newsletter!" .title }}
254- < div class ="row mt-4 justify-content-center ">
243+ < div class ="row mt-2 justify-content-center ">
255244 < div class ="col-12 col-md-10 col-xl-8 text-center ">
256245 < form
257246 action ="{{ site.Params.newsletter.subscription_form }} "
0 commit comments