[#577,templates][xs]: remove left in py:def in alttemplates/_util.html.
[#577,templates][m]: migrate view templates to jinja.