summaryrefslogtreecommitdiff
path: root/patchwork/filters.py
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-12-20 03:53:53 +0000
committerStephen Finucane <stephen.finucane@intel.com>2016-02-08 19:03:46 +0000
commitc02b41a30f8fb2554c6f57d2063a1944c89aab8e (patch)
tree97b0edd49e899c7b8803d66b3424b923fea616d9 /patchwork/filters.py
parent73b0a3db61d3bfe28d48149233215190190d7c5b (diff)
downloadpatchwork-c02b41a30f8fb2554c6f57d2063a1944c89aab8e.tar
patchwork-c02b41a30f8fb2554c6f57d2063a1944c89aab8e.tar.gz
ui: Switch to HTML5 doctype and fix issues
A few common things: - Remove the 'role' attribute of <nav> - Don't use the self closing syntax ('/>') on non void elements - Don't use the language attribution in <script> - Remove spurious attributes - The 'check' attribute of <input> doesn't take any value Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'patchwork/filters.py')
-rw-r--r--patchwork/filters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/patchwork/filters.py b/patchwork/filters.py
index b66407e..7d0d03c 100644
--- a/patchwork/filters.py
+++ b/patchwork/filters.py
@@ -309,10 +309,10 @@ class ArchiveFilter(Filter):
label = self.description_map[b]
selected = ''
if self.archive_state == b:
- selected = 'checked="true"'
+ selected = 'checked'
s += ('<label class="checkbox-inline">'
- ' <input type="radio" name="%(param)s" ' +
- '%(selected)s value="%(value)s">%(label)s' +
+ ' <input type="radio" name="%(param)s" '
+ '%(selected)s value="%(value)s">%(label)s'
'</label>') % \
{'label': label,
'param': self.param,