Applying format_html() in simple_tag-registered tags as per the suggestions for Django-1.9 upgrade wasn't straightforward. Reverting to earlier code for ballot-icond link.

- Legacy-Id: 12782
This commit is contained in:
Henrik Levkowetz 2017-02-02 14:24:36 +00:00
parent 8d8d58b437
commit 0948c4a0f3

View file

@ -100,10 +100,10 @@ def ballot_icon(context, doc):
my_blocking = True
break
res = [ format_html('<a %s href="%s" data-toggle="modal" data-target="#modal-%d" title="IESG positions (click to show more)" class="ballot-icon"><table', *(
res = ['<a %s href="%s" data-toggle="modal" data-target="#modal-%d" title="IESG positions (click to show more)" class="ballot-icon"><table' % (
right_click_string,
urlreverse("ietf.doc.views_doc.ballot_popup", kwargs=dict(name=doc.name, ballot_id=ballot.pk)),
ballot.pk,))]
ballot.pk,)]
if my_blocking:
res.append(' class="is-blocking" ')
res.append('>')