summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrike Uhlig <u@451f.org>2014-09-15 19:17:46 +0000
committerUlrike Uhlig <u@451f.org>2014-09-15 19:17:46 +0000
commite230ec25b673017eb93c696335c0bcfec6736b87 (patch)
tree6a1d5fe080a3b035b98fc0fb9d978d16e590e8a4
parent67b94619bb6a840668baeb6a9d3833b70c558ebe (diff)
use lists instead of tables where there is no tabular data
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28801 e39458fd-73e7-0310-bf30-c45bca0a0e42
-rw-r--r--bin/tracker_service.py6
-rw-r--r--lib/python/web_support.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/bin/tracker_service.py b/bin/tracker_service.py
index 776aee2143..a4bd8e3a1a 100644
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -52,12 +52,12 @@ class BugFilter:
note = 'Restore local vulnerabilities'
else:
note = 'Hide ' + desc
- l.append(TR(TD(A(url.updateParamsDict({prop : None}), note))))
+ l.append(LI(A(url.updateParamsDict({prop : None}), note)))
else:
note = 'Show ' + desc
- l.append(TR(TD(A(url.updateParamsDict({prop : '1'}), note))))
+ l.append(LI(A(url.updateParamsDict({prop : '1'}), note)))
- return TABLE(l)
+ return UL(l)
def urgencyFiltered(self, urg, vuln):
"""Returns True for urgencies that should be filtered."""
diff --git a/lib/python/web_support.py b/lib/python/web_support.py
index ac6200cb9c..d5cef51228 100644
--- a/lib/python/web_support.py
+++ b/lib/python/web_support.py
@@ -421,6 +421,8 @@ def FORM(*__contents, **__attribs):
return Tag('form', __contents, __attribs)
def INPUT(*__contents, **__attribs):
return Tag('input', __contents, __attribs)
+def UL(contents):
+ return tag('ul', contents)
def LI(*__contents, **__attribs):
return Tag('li', __contents, __attribs)
def HEADER(*__contents, **__attribs):

© 2014-2024 Faster IT GmbH | imprint | privacy policy