Mercurial > public > sg101
changeset 1082:644743600197
Forgot to commit countdown templates.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 24 Apr 2016 12:35:11 -0500 (2016-04-24) |
parents | ecb8f07d937b |
children | ae648fec8a51 |
files | sg101/templates/countdown/countdown_tag.html sg101/templates/countdown/v3/countdown_tag.html |
diffstat | 2 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sg101/templates/countdown/countdown_tag.html Sun Apr 24 12:35:11 2016 -0500 @@ -0,0 +1,13 @@ +{% if events %} +<div class="countdown"> + <ul class="inline-bullet-list"> + {% for delta, event in events %} + {% if delta == 0 %} + <li><a href="{{ event.url }}">{{ event.name }}</a> is today!</li> + {% else %} + <li>{{ delta }} days until <a href="{{ event.url }}">{{ event.name }}</a></li> + {% endif %} + {% endfor %} + </ul> +</div> +{% endif %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sg101/templates/countdown/v3/countdown_tag.html Sun Apr 24 12:35:11 2016 -0500 @@ -0,0 +1,13 @@ +{% if events %} +<div class="countdown"> + <ul class="inline-bullet-list"> + {% for delta, event in events %} + {% if delta == 0 %} + <li><a href="{{ event.url }}">{{ event.name }}</a> is today!</li> + {% else %} + <li>{{ delta }} days until <a href="{{ event.url }}">{{ event.name }}</a></li> + {% endif %} + {% endfor %} + </ul> +</div> +{% endif %}