Skip to content

Commit 7a41925

Browse files
author
Johannes Gijsbers
committed
Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
'white-space: nowrap;'.
1 parent ad254cd commit 7a41925

File tree

8 files changed

+50
-44
lines changed

8 files changed

+50
-44
lines changed

doc/customizing.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.100 $
5+
:Version: $Revision: 1.101 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1866,35 +1866,35 @@ template)::
18661866

18671867
<table class="form">
18681868
<tr>
1869-
<th nowrap>Title</th>
1869+
<th>Title</th>
18701870
<td colspan="3" tal:content="structure python:context.title.field(size=60)">title</td>
18711871
</tr>
18721872

18731873
<tr>
1874-
<th nowrap>Priority</th>
1874+
<th>Priority</th>
18751875
<td tal:content="structure context/priority/menu">priority</td>
1876-
<th nowrap>Status</th>
1876+
<th>Status</th>
18771877
<td tal:content="structure context/status/menu">status</td>
18781878
</tr>
18791879

18801880
<tr>
1881-
<th nowrap>Superseder</th>
1881+
<th>Superseder</th>
18821882
<td>
18831883
<span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
18841884
<span tal:replace="structure python:db.issue.classhelp('id,title')" />
18851885
<span tal:condition="context/superseder">
18861886
<br>View: <span tal:replace="structure python:context.superseder.link(showid=1)" />
18871887
</span>
18881888
</td>
1889-
<th nowrap>Nosy List</th>
1889+
<th>Nosy List</th>
18901890
<td>
18911891
<span tal:replace="structure context/nosy/field" />
18921892
<span tal:replace="structure python:db.user.classhelp('username,realname,address,phone')" />
18931893
</td>
18941894
</tr>
18951895

18961896
<tr>
1897-
<th nowrap>Assigned To</th>
1897+
<th>Assigned To</th>
18981898
<td tal:content="structure context/assignedto/menu">
18991899
assignedto menu
19001900
</td>
@@ -1903,14 +1903,14 @@ template)::
19031903
</tr>
19041904

19051905
<tr>
1906-
<th nowrap>Change Note</th>
1906+
<th>Change Note</th>
19071907
<td colspan="3">
19081908
<textarea name=":note" wrap="hard" rows="5" cols="60"></textarea>
19091909
</td>
19101910
</tr>
19111911

19121912
<tr>
1913-
<th nowrap>File</th>
1913+
<th>File</th>
19141914
<td colspan="3"><input type="file" name=":file" size="40"></td>
19151915
</tr>
19161916

@@ -2341,7 +2341,7 @@ will be the "name" variable of the current context (which is
23412341
to the form, a new category will be created with that name::
23422342

23432343
<tr>
2344-
<th nowrap>Name</th>
2344+
<th>Name</th>
23452345
<td tal:content="structure python:context.name.field(size=60)">
23462346
name</td>
23472347
</tr>
@@ -2379,7 +2379,7 @@ So putting it all together, and closing the table and form we get::
23792379
<tr><th class="header" colspan="2">Category</th></tr>
23802380

23812381
<tr>
2382-
<th nowrap>Name</th>
2382+
<th>Name</th>
23832383
<td tal:content="structure python:context.name.field(size=60)">
23842384
name</td>
23852385
</tr>
@@ -2414,7 +2414,7 @@ Just like ``category.issue.html`` this file defines a form which has a
24142414
table to lay things out. It doesn't matter where in the table we add new
24152415
stuff, it is entirely up to your sense of aesthetics::
24162416

2417-
<th nowrap>Category</th>
2417+
<th>Category</th>
24182418
<td><span tal:replace="structure context/category/field" />
24192419
<span tal:replace="structure db/category/classhelp" />
24202420
</td>
@@ -2578,12 +2578,12 @@ issues to. You can do this by following these steps:
25782578
4. in the ``issue.item.html`` template, change the status editing bit
25792579
from::
25802580

2581-
<th nowrap>Status</th>
2581+
<th>Status</th>
25822582
<td tal:content="structure context/status/menu">status</td>
25832583

25842584
to::
25852585

2586-
<th nowrap>Status</th>
2586+
<th>Status</th>
25872587
<td>
25882588
<select tal:condition="context/id" name="status">
25892589
<tal:block tal:define="ok context/status/transitions"
@@ -2613,7 +2613,7 @@ Alter the issue.item template section for messages to::
26132613
<td><a tal:attributes="href string:msg${msg/id}"
26142614
tal:content="string:msg${msg/id}"></a></td>
26152615
<td tal:content="msg/author">author</td>
2616-
<td nowrap tal:content="msg/date/pretty">date</td>
2616+
<td class="date" tal:content="msg/date/pretty">date</td>
26172617
<td tal:content="msg/summary">summary</td>
26182618
<td>
26192619
<a tal:attributes="href string:?@remove@messages=${msg/id}&@action=edit">
@@ -2720,11 +2720,11 @@ Setting up a "wizard" (or "druid") for controlled adding of issues
27202720

27212721
<tal:block tal:condition="python:cat in '6 10 13 14 15 16 17'.split()">
27222722
<tr>
2723-
<th nowrap>Operating System</th>
2723+
<th>Operating System</th>
27242724
<td tal:content="structure context/os/field"></td>
27252725
</tr>
27262726
<tr>
2727-
<th nowrap>Web Browser</th>
2727+
<th>Web Browser</th>
27282728
<td tal:content="structure context/browser/field"></td>
27292729
</tr>
27302730
</tal:block>
@@ -2931,7 +2931,7 @@ be able to give a summary of the total time spent on a particular issue.
29312931
field to capture a new timelog item's perdiod::
29322932

29332933
<tr>
2934-
<th nowrap>Time Log</th>
2934+
<th>Time Log</th>
29352935
<td colspan=3><input type="text" name="timelog-1@period" />
29362936
<br />(enter as '3y 1m 4d 2:40:02' or parts thereof)
29372937
</td>
@@ -3189,7 +3189,7 @@ that shows either one or the other. We'll use a new form variable,
31893189
<td><a tal:attributes="href string:msg${msg/id}"
31903190
tal:content="string:msg${msg/id}"></a></td>
31913191
<td tal:content="msg/author">author</td>
3192-
<td nowrap tal:content="msg/date/pretty">date</td>
3192+
<td class="date" tal:content="msg/date/pretty">date</td>
31933193
<td tal:content="msg/summary">summary</td>
31943194
<td>
31953195
<a tal:attributes="href string:?@remove@messages=${msg/id}&@action=edit">remove</a>
@@ -3206,7 +3206,7 @@ that shows either one or the other. We'll use a new form variable,
32063206
<tal:block tal:repeat="msg context/messages">
32073207
<tr>
32083208
<th tal:content="msg/author">author</th>
3209-
<th nowrap tal:content="msg/date/pretty">date</th>
3209+
<th class="date" tal:content="msg/date/pretty">date</th>
32103210
<th style="text-align: right">
32113211
(<a tal:attributes="href string:?@remove@messages=${msg/id}&@action=edit">remove</a>)
32123212
</th>
@@ -3242,7 +3242,7 @@ resolved. To achieve this:
32423242
2. Add the new "blockers" property to the issue.item edit page, using
32433243
something like::
32443244

3245-
<th nowrap>Waiting On</th>
3245+
<th>Waiting On</th>
32463246
<td>
32473247
<span tal:replace="structure python:context.blockers.field(showid=1,
32483248
size=20)" />

templates/classic/html/issue.index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ <h2>List of issues</h2>
3737
<td tal:condition="request/show/priority"
3838
tal:content="python:i.priority.plain() or default">&nbsp;</td>
3939
<td tal:condition="request/show/id" tal:content="i/id">&nbsp;</td>
40-
<td nowrap tal:condition="request/show/creation"
40+
<td class="date" tal:condition="request/show/creation"
4141
tal:content="i/creation/reldate">&nbsp;</td>
42-
<td nowrap tal:condition="request/show/activity"
42+
<td class="date" tal:condition="request/show/activity"
4343
tal:content="i/activity/reldate">&nbsp;</td>
4444
<td tal:condition="request/show/topic"
4545
tal:content="python:i.topic.plain() or default">&nbsp;</td>

templates/classic/html/issue.item.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ <h2>
2828

2929
<table class="form">
3030
<tr>
31-
<th class="required" nowrap>Title</th>
31+
<th class="required">Title</th>
3232
<td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
3333
</tr>
3434

3535
<tr>
36-
<th class="required" nowrap>Priority</th>
36+
<th class="required">Priority</th>
3737
<td tal:content="structure context/priority/menu">priority</td>
38-
<th nowrap>Status</th>
38+
<th>Status</th>
3939
<td tal:content="structure context/status/menu">status</td>
4040
</tr>
4141

4242
<tr>
43-
<th nowrap>Superseder</th>
43+
<th>Superseder</th>
4444
<td>
4545
<span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
4646
<span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
@@ -49,7 +49,7 @@ <h2>
4949
tal:content="sup/id"></a>
5050
</span>
5151
</td>
52-
<th nowrap>Nosy List</th>
52+
<th>Nosy List</th>
5353
<td>
5454
<span tal:replace="structure context/nosy/field" />
5555
<span tal:replace="structure
@@ -58,25 +58,25 @@ <h2>
5858
</tr>
5959

6060
<tr>
61-
<th nowrap>Assigned To</th>
61+
<th>Assigned To</th>
6262
<td tal:content="structure context/assignedto/menu">assignedto menu</td>
63-
<th nowrap>Topics</th>
63+
<th>Topics</th>
6464
<td>
6565
<span tal:replace="structure context/topic/field" />
6666
<span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
6767
</td>
6868
</tr>
6969

7070
<tr>
71-
<th nowrap>Change Note</th>
71+
<th>Change Note</th>
7272
<td colspan=3>
7373
<textarea tal:content="request/form/:note/value | default"
7474
name=":note" wrap="hard" rows="5" cols="80"></textarea>
7575
</td>
7676
</tr>
7777

7878
<tr>
79-
<th nowrap>File</th>
79+
<th>File</th>
8080
<td colspan=3><input type="file" name=":file" size="40"></td>
8181
</tr>
8282

@@ -99,28 +99,28 @@ <h2>
9999

100100
<table class="form" tal:condition="context/is_only_view_ok">
101101
<tr>
102-
<th nowrap>Title</th><td colspan=3 tal:content="context/title">title</td>
102+
<th>Title</th><td colspan=3 tal:content="context/title">title</td>
103103
</tr>
104104

105105
<tr>
106-
<th nowrap>Priority</th><td tal:content="context/priority">priority</td>
107-
<th nowrap>Status</th><td tal:content="context/status">status</td>
106+
<th>Priority</th><td tal:content="context/priority">priority</td>
107+
<th>Status</th><td tal:content="context/status">status</td>
108108
</tr>
109109

110110
<tr>
111-
<th nowrap>Superseder</th>
111+
<th>Superseder</th>
112112
<td>
113113
<span tal:condition="context/superseder" tal:repeat="sup context/superseder">
114114
<br>View: <a tal:attributes="href string:issue${sup/id}"
115115
tal:content="sup/id"></a>
116116
</span>
117117
</td>
118-
<th nowrap>Nosy List</th><td><span tal:replace="context/nosy" /></td>
118+
<th>Nosy List</th><td><span tal:replace="context/nosy" /></td>
119119
</tr>
120120

121121
<tr>
122-
<th nowrap>Assigned To</th><td tal:content="context/assignedto"></td>
123-
<th nowrap>Topics</th><td tal:content="structure context/topic"></td>
122+
<th>Assigned To</th><td tal:content="context/assignedto"></td>
123+
<th>Topics</th><td tal:content="structure context/topic"></td>
124124
</tr>
125125
</table>
126126

templates/classic/html/keyword.item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h2>Keyword editing</h2>
3636

3737
<table class="form">
3838
<tr>
39-
<th nowrap>Keyword</th>
39+
<th>Keyword</th>
4040
<td tal:content="structure context/name/field">name</td>
4141
</tr>
4242

templates/classic/html/msg.item.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ <h2>
1515
<table class="form">
1616

1717
<tr>
18-
<th nowrap>Author</th>
18+
<th>Author</th>
1919
<td tal:content="context/author"></td>
2020
</tr>
2121

2222
<tr>
23-
<th nowrap>Recipients</th>
23+
<th>Recipients</th>
2424
<td tal:content="context/recipients"></td>
2525
</tr>
2626

2727
<tr>
28-
<th nowrap>Date</th>
28+
<th>Date</th>
2929
<td tal:content="context/date"></td>
3030
</tr>
3131
</table>

templates/classic/html/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ td.content {
5353
width: 100%;
5454
}
5555

56+
td.date, th.date {
57+
white-space: nowrap;
58+
}
59+
5660
p.ok-message {
5761
background-color: #22bb22;
5862
padding: 5 5 5 5;
@@ -79,6 +83,7 @@ table.form th {
7983
text-align: right;
8084
vertical-align: top;
8185
font-weight: normal;
86+
white-space: nowrap;
8287
}
8388

8489
table.form th.header {

templates/minimal/html/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</tr>
2323

2424
<tr>
25-
<td rowspan="2" valign="top" nowrap class="sidebar">
25+
<td rowspan="2" valign="top" class="sidebar">
2626
<p class="userblock" tal:condition="python:request.user.username=='anonymous'">
2727
<form method="POST" action="">
2828
<input size="10" name="__login_name"><br>

templates/minimal/html/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ td.page-header-top {
2626

2727
td.sidebar {
2828
padding: 1 0 0 1;
29+
white-space: nowrap;
2930
}
3031

3132
td.sidebar p.classblock {

0 commit comments

Comments
 (0)