diff --git a/composer.json b/composer.json index 49547a2b..c017668e 100644 --- a/composer.json +++ b/composer.json @@ -53,6 +53,7 @@ "twig/cssinliner-extra": "^3.0", "twig/extra-bundle": "^2.12|^3.0", "twig/inky-extra": "^3.0", + "twig/string-extra": "^3.7", "twig/twig": "^2.0", "vich/uploader-bundle": "^1.13" }, diff --git a/composer.lock b/composer.lock index 59130dcd..b4a7f090 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e96f4e47efcdd13d1ed9e5cec5d5d987", + "content-hash": "447dc6250d4e3163dc97da0c080908b5", "packages": [ { "name": "composer/package-versions-deprecated", @@ -10096,6 +10096,73 @@ ], "time": "2023-02-09T06:45:16+00:00" }, + { + "name": "twig/string-extra", + "version": "v3.7.1", + "source": { + "type": "git", + "url": "https://github.com/twigphp/string-extra.git", + "reference": "7230d630a25e91cd91a2bd8e2f0e872962507eab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/string-extra/zipball/7230d630a25e91cd91a2bd8e2f0e872962507eab", + "reference": "7230d630a25e91cd91a2bd8e2f0e872962507eab", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/string": "^5.4|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "twig/twig": "^2.7|^3.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^5.4|^6.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Twig\\Extra\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + } + ], + "description": "A Twig extension for Symfony String", + "homepage": "https://twig.symfony.com", + "keywords": [ + "html", + "string", + "twig", + "unicode" + ], + "support": { + "source": "https://github.com/twigphp/string-extra/tree/v3.7.1" + }, + "funding": [ + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/twig/twig", + "type": "tidelift" + } + ], + "time": "2023-07-29T15:34:56+00:00" + }, { "name": "twig/twig", "version": "v2.15.5", diff --git a/templates/task/index.html.twig b/templates/task/index.html.twig index d015f64e..bdaebd9f 100644 --- a/templates/task/index.html.twig +++ b/templates/task/index.html.twig @@ -32,7 +32,7 @@ {{ t.id }} {{ t.title }} - {{ t.task|raw }} + {{ t.task|striptags|replace({' ' : ' '})|u.truncate(20, '...') }} {{ t.prioString }} {% trans from 'general' %}createdAt{% endtrans %}: {{ t.createdAt|date('d.m.Y') }}{% if t.endDate %}