From 82d9ef86a436751e1793589263a8540013ce6917 Mon Sep 17 00:00:00 2001 From: Mike Ng Date: Wed, 3 Jan 2018 17:08:02 +0400 Subject: [PATCH] porting PHRAS-1616 to 4.1 --- .../web/prod/upload/upload-flash.html.twig | 34 +++++++++++-------- templates/web/prod/upload/upload.html.twig | 30 +++++++++------- 2 files changed, 38 insertions(+), 26 deletions(-) diff --git a/templates/web/prod/upload/upload-flash.html.twig b/templates/web/prod/upload/upload-flash.html.twig index c0d801df55..250a8cb5ca 100644 --- a/templates/web/prod/upload/upload-flash.html.twig +++ b/templates/web/prod/upload/upload-flash.html.twig @@ -33,20 +33,20 @@ ({% trans with {'%maxFileSizeReadable%' : maxFileSizeReadable} %}maximum : %maxFileSizeReadable%{% endtrans %}) - - - - -

- {{ 'You are using the Flash uploader.' | trans }} - {% if not app['browser'].supportFileAPI() %} - {{ 'This version does not allow you to access all the features offered by the HTML5 uploader' | trans }} - {% endif %} -

- {% if app['browser'].supportFileAPI() %} - {{ 'Use the HTML5 uploader' | trans }} - {% endif %} - + {##} + {##} + {##} + {##} + {#

#} + {#{{ 'You are using the Flash uploader.' | trans }}#} + {#{% if not app['browser'].supportFileAPI() %}#} + {#{{ 'This version does not allow you to access all the features offered by the HTML5 uploader' | trans }}#} + {#{% endif %}#} + {#

#} + {#{% if app['browser'].supportFileAPI() %}#} + + {#{% endif %}#} + {##} {# settings box #} @@ -121,6 +121,12 @@ +
+ +
diff --git a/templates/web/prod/upload/upload.html.twig b/templates/web/prod/upload/upload.html.twig index 1e5d5a1565..0c5434c6e0 100644 --- a/templates/web/prod/upload/upload.html.twig +++ b/templates/web/prod/upload/upload.html.twig @@ -36,18 +36,18 @@ ({% trans with {'%maxFileSizeReadable%' : maxFileSizeReadable} %}maximum : %maxFileSizeReadable%{% endtrans %}) - - - - -

- {{ 'You are using the HTML5 uploader.' | trans }} - {% if not app['browser'].supportFileAPI() %} - {{ 'Your browser does not support all HTML5 features properly.' | trans }} - {% endif %} -

- {{ 'Use the Flash uploader' | trans }} - + {##} + {##} + {##} + {##} + {#

#} + {#{{ 'You are using the HTML5 uploader.' | trans }}#} + {#{% if not app['browser'].supportFileAPI() %}#} + {#{{ 'Your browser does not support all HTML5 features properly.' | trans }}#} + {#{% endif %}#} + {#

#} + + {##} @@ -131,6 +131,12 @@ +
+ +
{% else %} {{ 'You can not upload files' | trans }} {% endif %}