Code

better hyperlinking
authorkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 10 Jan 2003 12:09:33 +0000 (12:09 +0000)
committerkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 10 Jan 2003 12:09:33 +0000 (12:09 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1433 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py
roundup/templates/classic/html/_generic.help
roundup/templates/classic/html/issue.index

index b3f355e587517294c2643ac20bb7bc77cc400aca..dfccac849c11572a62b9f9fbc9e9581783c72418 100644 (file)
@@ -1,6 +1,9 @@
 This file contains the changes to the Roundup system over time. The entries
 are given with the most recent entry first.
 
+2003-??-?? 0.6.0 (?)
+- better hyperlinking
+
 2003-01-10 0.5.4
 - key the templates cache off full path, not filename
 - implemented whole-database locking
index d8ed0fc39f64cfbcf0a280fde168a7a2656feff1..8ffa328e3593273c82190483fb31282ac1d6090d 100644 (file)
@@ -735,7 +735,7 @@ class HTMLProperty:
 
 class StringHTMLProperty(HTMLProperty):
     url_re = re.compile(r'\w{3,6}://\S+')
-    email_re = re.compile(r'\w+@[\w\.\-]+')
+    email_re = re.compile(r'[\w\.]+@[\w\.\-]+')
     designator_re = re.compile(r'([a-z_]+)(\d+)')
     def _url_repl(self, match):
         s = match.group(0)
index bced017b165aeb0c4078754e8269c9ae92283a19..0197597a74ee23816f5d1277592af45737474bba 100644 (file)
@@ -8,7 +8,7 @@
        tal:define="props python:request.form['properties'].value.split(',')">
 <tr><th tal:repeat="prop props" tal:content="prop"></th></tr>
 <tr tal:repeat="item context/list">
- <td tal:repeat="prop props" tal:content="python:item[prop]"></td>
+ <td tal:repeat="prop props" tal:content="structure python:item[prop]"></td>
 </tr>
 </table>
 
index 1c15ac4346e0cedb9e4e7a353ca6bb1ad212171d..4f3e7b87510b5414f990f6241152ee5fcf83a108 100644 (file)
@@ -37,7 +37,7 @@ You are not allowed to view this page.
    <td tal:condition="request/show/topic" tal:content="i/topic"></td>
    <td tal:condition="request/show/title">
     <a tal:attributes="href string:issue${i/id}"
-       tal:content="python:str(i.title) or '[no title]'">title</a>
+               tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
    </td>
    <td tal:condition="request/show/status" tal:content="i/status"></td>
    <td tal:condition="request/show/creator" tal:content="i/creator"></td>