Skip to content

Commit e46f5bf

Browse files
author
Andrey Lebedev
committed
better hyperlinking
1 parent 2097ad5 commit e46f5bf

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2003-??-?? 0.6.0 (?)
5+
- better hyperlinking
6+
47
2003-01-10 0.5.4
58
- key the templates cache off full path, not filename
69
- implemented whole-database locking

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def __cmp__(self, other):
735735

736736
class StringHTMLProperty(HTMLProperty):
737737
url_re = re.compile(r'\w{3,6}://\S+')
738-
email_re = re.compile(r'\w+@[\w\.\-]+')
738+
email_re = re.compile(r'[\w\.]+@[\w\.\-]+')
739739
designator_re = re.compile(r'([a-z_]+)(\d+)')
740740
def _url_repl(self, match):
741741
s = match.group(0)

roundup/templates/classic/html/_generic.help

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
tal:define="props python:request.form['properties'].value.split(',')">
99
<tr><th tal:repeat="prop props" tal:content="prop"></th></tr>
1010
<tr tal:repeat="item context/list">
11-
<td tal:repeat="prop props" tal:content="python:item[prop]"></td>
11+
<td tal:repeat="prop props" tal:content="structure python:item[prop]"></td>
1212
</tr>
1313
</table>
1414

roundup/templates/classic/html/issue.index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You are not allowed to view this page.
3737
<td tal:condition="request/show/topic" tal:content="i/topic"></td>
3838
<td tal:condition="request/show/title">
3939
<a tal:attributes="href string:issue${i/id}"
40-
tal:content="python:str(i.title) or '[no title]'">title</a>
40+
tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
4141
</td>
4242
<td tal:condition="request/show/status" tal:content="i/status"></td>
4343
<td tal:condition="request/show/creator" tal:content="i/creator"></td>

0 commit comments

Comments
 (0)