Skip to content

Commit 07aad2a

Browse files
committed
Template updates:
- Use python, not template-language, to decide if the month is different. - Don't use "odate" and add a space where appropriate. - Use a datetime and time zone instead of hardcoding (ET). (let the model combine the date and the time) - Legacy-Id: 1158
1 parent 5feb579 commit 07aad2a

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

ietf/proceedings/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ class Switches(models.Model):
409409
val = models.IntegerField(null=True, blank=True)
410410
updated_date = models.DateField(null=True, blank=True)
411411
updated_time = models.TimeField(null=True, blank=True)
412+
def updated(self):
413+
return datetime.datetime.combine( self.updated_date, self.updated_time )
412414
def __str__(self):
413415
return self.name
414416
class Meta:

ietf/templates/meeting/agenda.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<center>
99
<strong> Agenda of the {{ meeting_num|ordinal }} IETF Meeting </strong> <br/>
10-
<strong>{{ meeting_info.start_date|date:"F j" }}-{% ifnotequal meeting_info.start_date|date:"F" meeting_info.end_date|date:"F" %}{{ meeting_info.end_date|date:"F " }}{% endifnotequal %}{{ meeting_info.end_date|date:"j, Y" }} </strong><br />
11-
Updated as of {{ last_update_info.updated_date }} {{ last_update_info.updated_time }} (ET)
10+
<strong>{{ meeting_info.start_date|date:"F j" }}-{% ifnotequal meeting_info.start_date.month meeting_info.end_date.month %}{{ meeting_info.end_date|date:"F " }}{% endifnotequal %}{{ meeting_info.end_date|date:"j, Y" }} </strong><br />
11+
Updated as of {{ last_update_info.updated|date:"F j, Y P (T)" }}
1212
</center>
1313

1414
(<a href="http://www3.ietf.org//meetings/agenda_{{meeting_num}}.txt"> Text Format of the Agenda </a>) <br />

ietf/templates/meeting/list.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
{% extends "base.html" %}
33
{% block title %} IETF {{ meeting_num }} Preliminary & Interim Materials {% endblock %}
4-
{% block content %}
4+
{% block head %}
55
<link rel="stylesheet" type="text/css" href="https://www.ietf.org/css/base.css" />
6+
{% endblock %}
7+
{% block content %}
68
<center>
79
<h2>IETF {{ meeting_num }} Meeting Materials</h2>
810
{% if sub_began %}
911
<h4>Submission began {{ begin_date|date:"F j, Y" }} </h4>
10-
<h4>Submission cutoff odate: {{ cut_off_date|date:"F j, Y" }}</h4>
11-
<h4>Corrections to submissions cutoff date:{{ cor_cut_off_date|date:"F j, Y" }} </h4>
12+
<h4>Submission cutoff date: {{ cut_off_date|date:"F j, Y" }}</h4>
13+
<h4>Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }} </h4>
1214
{% endif %}
1315
Updated as of {% now "F j, Y, H:i:s (T)" %}
1416
<br><br>

ietf/templates/meeting/list_closed.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
{% extends "base.html" %}
33
{% block title %} IETF {{ meeting_num }} Preliminary & Interim Materials {% endblock %}
4-
{% block content %}
4+
{% block head %}
55
<link rel="stylesheet" type="text/css" href="https://www.ietf.org/css/base.css" />
6+
{% endblock %}
7+
{% block content %}
68
<center>
79
<h2>IETF {{ meeting_num }} Preliminary & Interim Materials</h2>
810
<h4>Submission began {{ begin_date|date:"F j, Y" }} </h4>
9-
<h4>Submission cutoff odate: {{ cut_off_date|date:"F j, Y" }}</h4>
10-
<h4>Corrections to submissions cutoff date:{{ cor_cut_off_date|date:"F j, Y" }} </h4>
11+
<h4>Submission cutoff date: {{ cut_off_date|date:"F j, Y" }}</h4>
12+
<h4>Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }} </h4>
1113
</center>
1214
<br>
1315
<i>

0 commit comments

Comments
 (0)