Skip to content

Commit dfa7bc6

Browse files
authored
Merge pull request #42 from pythonpereira/issue-39
Added event information
2 parents d23662d + f4c970e commit dfa7bc6

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

templates/event.html

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,45 @@ <h2 class="section-title gt-walsheim primary-color">{{ this.title }}</h2>
3333
</p>
3434
{% endif %}
3535

36+
<div class="row justify-content-center topspace">
37+
{% if this.pub_date %}
38+
<div class="col-md-4">
39+
<p>
40+
<div class="gt-walsheim primary-color"><b>Fecha: </b></div>
41+
{% if this.pub_date %}
42+
{{ this.pub_date.strftime('%d %b del %Y') }}
43+
{% endif %}
44+
</p>
45+
<p>
46+
<div class="gt-walsheim primary-color"><b>Hora: </b></div>
47+
{% if this.pub_date %}
48+
{{ this.pub_date.strftime('%H:%M') }}
49+
{% endif %}
50+
{% if this.end_date %}
51+
- {{ this.end_date.strftime('%H:%M') }}
52+
{% endif %}
53+
</p>
54+
</div>
55+
{% endif %}
56+
{% if this.place %}
57+
<div class="col-md-8">
58+
<p>
59+
<div class="gt-walsheim primary-color"><b>Lugar: </b></div>
60+
{% if this.place %}
61+
{{ this.place }}
62+
{% endif %}
63+
</p>
64+
</div>
65+
{% endif %}
66+
</div>
67+
3668
{% if this.latitude and this.longitude %}
3769

3870
{%- set lon_ll = this.longitude - 0.001 -%}
3971
{%- set lon_ur = this.longitude + 0.001 -%}
4072
{%- set lat_ll = this.latitude - 0.002 -%}
4173
{%- set lat_ur = this.latitude + 0.002 -%}
42-
<div class="row">
43-
<p class="section-title gt-walsheim primary-color">Lugar</p>
44-
</div>
74+
4575
<div class="embed-container">
4676
<iframe id="mapsource" scrollwheel="false" width="800" height="600" frameborder="0" scrolling="no" marginheight="0"
4777
marginwidth="0"
@@ -109,7 +139,7 @@ <h3 class="section-title gt-walsheim primary-color">Patrocinadores</h3>
109139
<div class="row justify-content-center">
110140
{%- for block in this.sponsor.blocks -%}
111141
{%- set sponsor = site.get('/usuarios/' + block.username) -%}
112-
<div class="col-md-4">
142+
<div class="col-md-4 col-6">
113143
<a href="{{ sponsor.web }}" target="_blank">
114144
{% if sponsor.image_alt %}
115145
<img class="logo" src="{{ sponsor|url }}/{{ sponsor.image_alt }}" alt="{{ sponsor.sponsorname }}" />

0 commit comments

Comments
 (0)