diff --git a/resources/ansible/playbook-boxes.yml b/resources/ansible/playbook-boxes.yml index 704c5b96ec..3418297c6c 100644 --- a/resources/ansible/playbook-boxes.yml +++ b/resources/ansible/playbook-boxes.yml @@ -7,14 +7,14 @@ # - server # - repositories # - vagrant_local -# - nginx + - nginx # - mariadb # - elasticsearch # - rabbitmq # - php -# - xdebug + - xdebug # - composer -# - mailcatcher + - mailcatcher # - node # - yarn # - ffmpeg diff --git a/resources/ansible/roles/mailcatcher/tasks/main.yml b/resources/ansible/roles/mailcatcher/tasks/main.yml index 7d1ca213ea..45a377ebe8 100644 --- a/resources/ansible/roles/mailcatcher/tasks/main.yml +++ b/resources/ansible/roles/mailcatcher/tasks/main.yml @@ -13,7 +13,7 @@ - name: Install mailcatcher gem # gem module is flaky, this is consistent - command: gem install mailcatcher --conservative + command: gem install mailcatcher -v 0.6.4 --conservative ignore_errors: yes - name: Install mailcatcher supervisord conf diff --git a/templates/web/prod/actions/Tools/videoEditor.html.twig b/templates/web/prod/actions/Tools/videoEditor.html.twig index df8f61332c..6d10080cce 100644 --- a/templates/web/prod/actions/Tools/videoEditor.html.twig +++ b/templates/web/prod/actions/Tools/videoEditor.html.twig @@ -45,23 +45,36 @@ {% set dataH = constant('media_subdef::TC_DATA_HEIGHT') %} {% set technical_info = record.get_technical_infos %} + + {#Set the preview Ratio #} {% set width = technical_info[dataW].value %} {% set height = technical_info[dataH].value %} + {% set prevRatio = '' %} {% if width and height %} - {% set rawRatio = (width / height)|number_format(3, '.') %} - {% set rawRatioLength = rawRatio|length %} - {% set ratio = rawRatio|slice(0,rawRatioLength-1) %} - {% else %} - {% set ratio = '' %} + {% set ratio = (width / height)|number_format(2, '.') %} {% endif %} -