Skip to content

Commit 92deb90

Browse files
committed
Merged in changes from Pasi. See changelog for details.
- Legacy-Id: 1480
1 parent 11dc7fc commit 92deb90

7 files changed

Lines changed: 37 additions & 14 deletions

File tree

changelog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
ietfdb (2.26)
2+
3+
* Fixed parsing of REF state in RFC Editor queue.
4+
5+
* Include draft version in document comment Atom feed.
6+
7+
* Minor formatting bugfixes (should work better with IE6 and Safari)
8+
in "new layout" (idrfc).
9+
10+
* Minor fixes to showing "days in state" data.
11+
12+
-- Pasi Eronen <pasi.eronen@nokia.com> 28 May 2009 14:03:45 +0200
13+
114
ietfdb (2.25)
215

316
* Refactored IdRfcWrapper and lots of improvements to ID/RFC pages.

ietf/idrfc/mirror_rfc_editor_queue.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,23 @@ def getChildText(parentNode, tagName):
7777
for child in node.childNodes:
7878
if child.nodeType == Node.ELEMENT_NODE and child.localName == "state":
7979
states.append(child.firstChild.data)
80-
if len(states) == 0:
81-
state = "?"
82-
else:
83-
state = " ".join(states)
84-
85-
drafts.append([draft_name, date_received, state, stream])
8680

81+
has_refs = False
8782
for child in node.childNodes:
8883
if child.nodeType == Node.ELEMENT_NODE and child.localName == "normRef":
8984
ref_name = getChildText(child, "ref-name")
9085
ref_state = getChildText(child, "ref-state")
9186
in_queue = ref_state.startswith("IN-QUEUE")
9287
refs.append([draft_name, ref_name, in_queue, True])
88+
has_refs = True
89+
if has_refs and not "MISSREF" in states:
90+
states.append("REF")
91+
92+
if len(states) == 0:
93+
state = "?"
94+
else:
95+
state = " ".join(states)
96+
drafts.append([draft_name, date_received, state, stream])
9397

9498
elif event == pulldom.START_ELEMENT and node.tagName == "section":
9599
name = node.getAttribute('name')

ietf/idrfc/templatetags/ballot_icon.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,11 @@ def state_age_colored(doc):
162162
goal = 30
163163
elif main_state == "RFC Ed Queue":
164164
goal = 60
165+
elif main_state == "In Last Call":
166+
goal = 30
165167
else:
166168
goal = 14
167169
if days > goal:
168-
return '<span style="padding:0 2px;font-size:85%%;background:yellow;" title="Goal is %d days">(for %d days)</span>' % (goal,days)
170+
return '<span style="padding:0 2px;font-size:85%%;background:yellow;" title="Goal is %d days">(for&nbsp;%d&nbsp;day%s)</span>' % (goal,days,('','s')[days != 1])
169171
else:
170-
return '<span style="font-size:85%%;">(for %d days)</span>' % (days,)
172+
return '<span style="font-size:85%%;">(for&nbsp;%d&nbsp;day%s)</span>' % (days,('','s')[days != 1])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
[{{ obj.get_username }}] {{ obj.comment_text|removetags:"b"|truncatewords:"15" }}
33
{% if obj.ballot %}[[ IESG {{ obj.get_ballot_display.upper }} ]]{% endif %}
4+
{% if not obj.document.rfc_flag %}[ version {{ obj.version }} ]{% endif %}

ietf/templates/idrfc/base_leftmenu.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<li class="sect first">Working Groups by Area</li>
4747
{% endif %}
4848

49-
<li><div id="wgs" class="yuimenu"><div class="bd">
49+
<li><div id="wgs" class="yuimenu"><div class="bd" style="border:0;">
5050
<ul class="first-of-type" style="padding:0;">
5151
<!-- begin wg_menu -->
5252
{% wg_menu %}
@@ -58,8 +58,7 @@
5858

5959
<li class="sect">Internet Drafts&nbsp;&amp;&nbsp;RFCs</li>
6060
<li><a href="/doc/">Search</a></li>
61-
<li><form action="/doc/search/" method="get" style="margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name"/>
62-
<input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
61+
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
6362
<li><a href="https://datatracker.ietf.org/idst/upload.cgi">Submit a draft</a></li>
6463

6564

ietf/templates/idrfc/search_result_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{% if doc.id and doc.id.expected_expiration_date and doc.id.expected_expiration_date|timesince_days|greater_than:"-14" %}<br/><span style="padding:0 2px;font-size:85%;background:yellow;">expires soon</span>{%endif%}
4646
</td>
4747

48-
<td class="status">{{ doc.friendly_state|escape }}
48+
<td class="status">{{ doc.friendly_state }}
4949
{% if not doc.rfc %}{{ doc.id|state_age_colored }}{% endif %}
5050
{% if doc.rfc %}
5151
{% if doc.rfc.obsoleted_by %}<br />Obsoleted by {{ doc.rfc.obsoleted_by }}{%endif %}

static/css/base2.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,14 @@ body { margin: 0; }
5656

5757
.leftmenu { background-color: #edf5ff; padding:0; border: 1px solid #89d; }
5858
.leftmenu ul { padding: 0; margin: 0; }
59-
.leftmenu ul li { list-style: none; padding: 0; margin: 0; font-size: 90%; }
60-
.leftmenu ul li a { display:block; padding: 2px 2px 2px 10px; }
59+
.leftmenu ul li { list-style: none; padding: 0; margin: 0; font-size: 90%; padding: 2px 0px 2px 0px; }
60+
.leftmenu ul li.yuimenuitem { padding: 1px 0px 1px 0px; border: 0;}
61+
.leftmenu ul li a { padding: 0px 0px 0px 10px; }
62+
.leftmenu ul li.sect a { padding: 2px 2px 2px 2px; }
6163
.leftmenu ul li.sect { font-weight:bold; color:#fff; background:#2647A0; margin-top:2px; text-indent:2px; padding: 2px 0;}
6264
.leftmenu ul li.first { margin-top: 0px; }
6365
.leftmenu ul li a:hover { color:#fff; background: #e60; }
66+
.leftmenu ul li.sect a { color:#fff; }
6467

6568
.leftmenu .yuimenuitemlabel { font-size: 12px; padding: 0 10px; }
6669
.leftmenu a.yuimenuitemlabel { color:#0000ee; /*text-decoration: underline;*/ }
@@ -106,6 +109,7 @@ form#search_form { padding-top: 4px; padding-bottom: 4px; }
106109
.search_results th.ad, .search_results td.ad { white-space:nowrap; min-width: 6em; }
107110
.search_results td.ballot { border-left: hidden; }
108111

112+
td.ballot { min-width:37px; }
109113
table.ballot_icon { empty-cells: show; padding: 0; border-spacing: 0; border: 1px solid black; border-collapse: collapse; table-layout:fixed; min-width:35px; background:white; }
110114
table.ballot_icon td { border: 1px solid black; height: 7px; width: 6px; padding: 0;}
111115
td.ballot_icon_green { background:#80ff80; }

0 commit comments

Comments
 (0)