Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Wrapped EventListing content in a container to ensure more consistent…
Browse files Browse the repository at this point in the history
… layouts out of the box

Re ic-labs/django-icekit#197
  • Loading branch information
markfinger committed Mar 20, 2017
1 parent e07e5eb commit bcd9bc2
Showing 1 changed file with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@
{% block title %}{{ page.get_title }} {{ start|date }}{% endblock %}

{% block content %}
<h1>{{ page.get_title }}</h1>
<h2>{{ start|date }}</h2>

<ul>
{% for item in items_to_list %}
<li><a href="{{ item.get_absolute_url }}">
{{ item.event|safe }}: {{ item.time_range_string }}
</a></li>
{% empty %}
<li>There are no events happening today</li>
{% endfor %}
</ul>


{% with tomorrow=start.date|add_days:1 yesterday=start.date|add_days:-1 %}
<p><a href="?{% update_GET 'date' = yesterday %}">{{ yesterday }}</a></p>
<p><a href="?{% update_GET 'date' = tomorrow %}">{{ tomorrow }}</a></p>
{% endwith %}

<div class="events-datepicker" id="datepicker" data-period="{{ days }}" data-start="{{ start|date:'Y-m-d' }}"></div>

{% endblock %}
<div class="container">
<h1>{{ page.get_title }}</h1>
<h2>{{ start|date }}</h2>

<ul>
{% for item in items_to_list %}
<li><a href="{{ item.get_absolute_url }}">
{{ item.event|safe }}: {{ item.time_range_string }}
</a></li>
{% empty %}
<li>There are no events happening today</li>
{% endfor %}
</ul>


{% with tomorrow=start.date|add_days:1 yesterday=start.date|add_days:-1 %}
<p><a href="?{% update_GET 'date' = yesterday %}">{{ yesterday }}</a></p>
<p><a href="?{% update_GET 'date' = tomorrow %}">{{ tomorrow }}</a></p>
{% endwith %}

<div class="events-datepicker" id="datepicker" data-period="{{ days }}" data-start="{{ start|date:'Y-m-d' }}"></div>
</div>
{% endblock %}

0 comments on commit bcd9bc2

Please sign in to comment.