Skip to content
Snippets Groups Projects
Commit bc487b9ade28 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[cleaning] cleaning HTML

* remove useless classes and id
* add aria-roles
parent 61da700ea4cf
No related branches found
No related tags found
No related merge requests found
......@@ -65,8 +65,8 @@
@monkeypatch(basetemplates.TheMainTemplate)
def template_page_content(self, view):
w = self.w
w(u'<div id="page" class="container">\n'
u'<div class="row">\n')
w(u'<div id="page" class="container">\n')
w(u'<div class="row">\n')
left_boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
self._cw, rset=self.cw_rset, view=view, context='left'))
right_boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
......@@ -116,7 +116,7 @@
getlayout = self._cw.vreg['components'].select
self.w(u'<div id="aside-main-%s" class="col-md-3">\n' %
context)
self.w(u'<div class="navboxes" id="navColumn%s">\n' % context.capitalize())
self.w(u'<div class="navboxes">\n')
for box in boxes:
box.render(w=self.w, view=view)
self.w(u'</div>\n')
......@@ -196,7 +196,6 @@
'header-right':'navbar-right',
}
@monkeypatch(basetemplates.HTMLPageHeader)
def call(self, view, **kwargs):
self.main_header(view)
......@@ -284,7 +283,7 @@
@monkeypatch(basetemplates.HTMLPageFooter)
def call(self, **kwargs):
self.w(u'<footer id="pagefooter">')
self.w(u'<footer id="pagefooter" role="contentinfo">')
self.footer_content()
self.w(u'</footer>\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment