add day_specifier from recurrence

If the recurrence knows how to give us a "day specifier" such as "the
first" then include that in the output from the template.

Depends-On: https://review.openstack.org/615268
Change-Id: I89cf1eb243e2b35ce7bf426dae7939bbcb78aa3c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-11-02 14:03:03 -04:00 committed by Thierry Carrez
parent 6e50a8496f
commit 68ebab8388
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ use in your favorite calendaring app:</p>
<div class="panel-body"> <div class="panel-body">
{% for schedule in meeting.schedules %} {% for schedule in meeting.schedules %}
<div><span class="glyphicon glyphicon-time"></span>&nbsp; <div><span class="glyphicon glyphicon-time"></span>&nbsp;
{{ schedule.recurrence }} on {{ schedule.day }} at {{ schedule.recurrence }} on {% if schedule.recurrence.day_specifier %}{{ schedule.recurrence.day_specifier }} {% endif %}{{ schedule.day }} at
<a data-toggle="tooltip" data-placement="top" title="NotFilledInYet" utctime="{{schedule.utc}}" weekday="{{schedule.day}}" <a data-toggle="tooltip" data-placement="top" title="NotFilledInYet" utctime="{{schedule.utc}}" weekday="{{schedule.day}}"
href="http://www.timeanddate.com/worldclock/fixedtime.html?hour={{ schedule.utc[:2] }}&amp;min={{ schedule.utc[2:] }}&amp;sec=0" href="http://www.timeanddate.com/worldclock/fixedtime.html?hour={{ schedule.utc[:2] }}&amp;min={{ schedule.utc[2:] }}&amp;sec=0"
class="timelink"> class="timelink">

View File

@ -2,4 +2,4 @@ hacking<0.11,>=0.10.0
pytz>=2013.6 # MIT pytz>=2013.6 # MIT
PyYAML>=3.1.0 # MIT PyYAML>=3.1.0 # MIT
requests>=2.10.0 # Apache-2.0 requests>=2.10.0 # Apache-2.0
yaml2ical>=0.9.0 yaml2ical>=0.10.0