Fix some unicode literals for base template

only necessary for python2, but we still must support that for now...
This commit is contained in:
Lance Edgar 2019-03-11 13:17:26 -05:00
parent 9b1efc3e45
commit eac2c2ddb2

View file

@ -87,15 +87,16 @@
% if show_prev_next is not Undefined and show_prev_next: % if show_prev_next is not Undefined and show_prev_next:
<div style="float: right;"> <div style="float: right;">
## NOTE: the u"" literals seem to be required for python2..not sure why
% if prev_url: % if prev_url:
${h.link_to("« Older", prev_url, class_='button autodisable')} ${h.link_to(u"« Older", prev_url, class_='button autodisable')}
% else: % else:
${h.link_to("« Older", '#', class_='button', disabled='disabled')} ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')}
% endif % endif
% if next_url: % if next_url:
${h.link_to("Newer »", next_url, class_='button autodisable')} ${h.link_to(u"Newer »", next_url, class_='button autodisable')}
% else: % else:
${h.link_to("Newer »", '#', class_='button', disabled='disabled')} ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')}
% endif % endif
</div> </div>
% endif % endif