Skip to content

Commit

Permalink
Merge pull request #63 from acl-org/feature/9-sponsor-booths-2
Browse files Browse the repository at this point in the history
#9 - Initial sponsor booth update
  • Loading branch information
jcklie authored Oct 27, 2020
2 parents 7905280 + a3abe38 commit e53e457
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion miniconf/load_site_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def build_sponsors(site_data, by_uid, display_time_format) -> None:
end = start + timedelta(hours=session["duration"])
else:
end = session["end"].astimezone(pytz.timezone("GMT"))
day = start.strftime("%A")
day = start.strftime("%A, %b %d")
start_time = start.strftime(display_time_format)
end_time = end.strftime(display_time_format)
time_string = "{} ({}-{} GMT)".format(day, start_time, end_time)
Expand Down
2 changes: 1 addition & 1 deletion sitedata/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ paper_images_path: https://acl2020-public.s3.amazonaws.com/papers
default_presentation_id: 38931484

# Remove or change to your chat server.
chat_server: acl2020.rocket.chat
chat_server: emnlp2020.rocket.chat

calendar:
start: '2020-11-16'
Expand Down
File renamed without changes
36 changes: 19 additions & 17 deletions templates/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,27 @@
<div class="sponsors">
<div class="cards row">
{% for sponsor_level in sponsor_levels %}
<div class="col-12">
<h2>{{ sponsor_level }}</h2>
<hr />
</div>
{% if sponsors[sponsor_level] | length > 0 %}
<div class="col-12 pt-3">
<h2>{{ sponsor_level }}</h2>
<hr />
</div>

{% for sponsor in sponsors[sponsor_level] %}
{% if sponsor.landingpage is defined %}
<a class="text-muted" href="{{sponsor.landingpage}}" target="_blank">
{% else %}
<a class="text-muted" href="sponsor_{{sponsor.UID}}.html" target="_blank">
{% endif %}
<div class="col-md-3 col-sm-6">
<div class="sponsorLogo">
<span class="sponsorHelper"></span>
<img class="card-img-top sponsorImg" src="static/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }}" />
{% for sponsor in sponsors[sponsor_level] %}
{% if sponsor.landingpage is defined %}
<a class="text-muted" href="{{sponsor.landingpage}}" target="_blank">
{% else %}
<a class="text-muted" href="sponsor_{{sponsor.UID}}.html" target="_blank">
{% endif %}
<div class="col-md-3 col-sm-6">
<div class="sponsorLogo">
<span class="sponsorHelper"></span>
<img class="card-img-top sponsorImg" src="static/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }}" />
</div>
</div>
</div>
</a>
{% endfor %}
</a>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit e53e457

Please sign in to comment.