Bug#0005274: Narweb - Web Link, showing Url -- has been fixed as requested.
svn: r19084
This commit is contained in:
parent
48a59f6e7e
commit
3f2a231f4b
@ -1639,7 +1639,6 @@ class BasePage(object):
|
|||||||
Html('th', label, class_ = "Column" + colclass, inline = True)
|
Html('th', label, class_ = "Column" + colclass, inline = True)
|
||||||
for (label, colclass) in [
|
for (label, colclass) in [
|
||||||
(THEAD, "Type"),
|
(THEAD, "Type"),
|
||||||
(_("Url"), "Path"),
|
|
||||||
(DESCRHEAD, "Description") ]
|
(DESCRHEAD, "Description") ]
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1670,12 +1669,13 @@ class BasePage(object):
|
|||||||
if not (uri.startswith("ftp://") or uri.startswith("ftps://")):
|
if not (uri.startswith("ftp://") or uri.startswith("ftps://")):
|
||||||
uri = "ftp://%(ftpsite)s" % { "ftpsite" : uri }
|
uri = "ftp://%(ftpsite)s" % { "ftpsite" : uri }
|
||||||
|
|
||||||
uri = Html("a", uri, href = uri, title = html_escape(descr))
|
descr = Html("p", html_escape(descr)) + (
|
||||||
|
Html("a", _(" ]Click to Go]"), href = uri, title = uri)
|
||||||
|
)
|
||||||
trow.extend(
|
trow.extend(
|
||||||
Html("td", data, class_ = "Column" + colclass, inline = True)
|
Html("td", data, class_ = "Column" + colclass, inline = True)
|
||||||
for (data, colclass) in [
|
for (data, colclass) in [
|
||||||
(str(_type), "Type"),
|
(str(_type), "Type"),
|
||||||
(uri, "Path"),
|
|
||||||
(descr, "Description") ]
|
(descr, "Description") ]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user