More tweaks for python 3
This commit is contained in:
parent
135e98cde1
commit
5c1008a0df
7 changed files with 33 additions and 19 deletions
|
@ -39,13 +39,6 @@
|
|||
</style>
|
||||
</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
${parent.context_menu_items()}
|
||||
% if master.cloneable and request.has_perm('{}.clone'.format(permission_prefix)):
|
||||
<li>${h.link_to("Clone as new batch", url('{}.clone'.format(route_prefix), uuid=batch.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
<%def name="buttons()">
|
||||
<div class="buttons">
|
||||
${self.leading_buttons()}
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
|
||||
var recipient_mappings = new Map([
|
||||
<% last = len(available_recipients) %>
|
||||
% for i, (uuid, entry) in enumerate(sorted(available_recipients.items(), key=lambda r: r[1]), 1):
|
||||
% for i, recip in enumerate(available_recipients, 1):
|
||||
<% uuid, entry = recip %>
|
||||
['${uuid}', ${json.dumps(entry)|n}]${',' if i < last else ''}
|
||||
% endfor
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue