diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-20 03:53:53 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:46 +0000 |
commit | c02b41a30f8fb2554c6f57d2063a1944c89aab8e (patch) | |
tree | 97b0edd49e899c7b8803d66b3424b923fea616d9 /templates/base.html | |
parent | 73b0a3db61d3bfe28d48149233215190190d7c5b (diff) | |
download | patchwork-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 'templates/base.html')
-rw-r--r-- | templates/base.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html index f5a065d..09839e9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,5 @@ {% load staticfiles %} -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> @@ -24,7 +23,7 @@ {% block headers %}{% endblock %} </head> <body> - <nav class="navbar navbar-inverse navbar-patchwork" role="navigation"> + <nav class="navbar navbar-inverse navbar-patchwork"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse"> @@ -71,7 +70,7 @@ <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="badge">{{ user.profile.n_todo_patches }}</span> - <strong>{{ user.username }}</strong> <span class="caret" /> + <strong>{{ user.username }}</strong> <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"> <li> |