17 <tr tal:define="converter_name converter_util[0]; |
17 <tr tal:define="converter_name converter_util[0]; |
18 converter converter_util[1];"> |
18 converter converter_util[1];"> |
19 <td tal:content="converter.label" i18n:translate="" class="padding-right-20"></td> |
19 <td tal:content="converter.label" i18n:translate="" class="padding-right-20"></td> |
20 <td tal:define="converted view.has_conversion(converter, None)" |
20 <td tal:define="converted view.has_conversion(converter, None)" |
21 class="text-align-center"> |
21 class="text-align-center"> |
22 <span tal:condition="converted" |
22 <tal:if condition="converted"> |
23 class="txt-color-green" i18n:translate="">OK</span> |
23 <a tal:define="conversion view.get_conversion(converter, None); |
|
24 url extension:absolute_url(conversion);" |
|
25 tal:attributes="href string:${url}?download=1"> |
|
26 <span class="txt-color-green" i18n:translate="">OK</span> |
|
27 </a> |
|
28 </tal:if> |
24 <span tal:condition="not converted" |
29 <span tal:condition="not converted" |
25 class="txt-color-orange" i18n:translate="">Waiting...</span> |
30 class="txt-color-orange" i18n:translate="">Waiting...</span> |
26 </td> |
31 </td> |
27 <tal:loop repeat="format view.formats"> |
32 <tal:loop repeat="format view.formats"> |
28 <td class="text-center padding-x-10" |
33 <td class="text-center padding-x-10" |
29 tal:define="frame_width format[1][0]; |
34 tal:define="frame_width format[1][0]; |
30 maybe frame_width < original_size[0]; |
35 maybe frame_width < original_size[0]; |
31 converted view.has_conversion(converter, format);"> |
36 converted view.has_conversion(converter, format[0]);"> |
32 <span tal:condition="not maybe">N/A</span> |
37 <span tal:condition="not maybe">N/A</span> |
33 <tal:if condition="maybe"> |
38 <tal:if condition="maybe"> |
34 <span tal:condition="converted" |
39 <tal:if condition="converted"> |
35 class="txt-color-green" i18n:translate="">OK</span> |
40 <a tal:define="conversion view.get_conversion(converter, format[0]); |
|
41 url extension:absolute_url(conversion);" |
|
42 tal:attributes="href string:${url}?download=1"> |
|
43 <span class="txt-color-green" i18n:translate="">OK</span> |
|
44 </a> |
|
45 </tal:if> |
36 <span tal:condition="not converted" |
46 <span tal:condition="not converted" |
37 class="txt-color-orange" i18n:translate="">Waiting...</span> |
47 class="txt-color-orange" i18n:translate="">Waiting...</span> |
38 </tal:if> |
48 </tal:if> |
39 </td> |
49 </td> |
40 </tal:loop> |
50 </tal:loop> |