Skip to content

Commit

Permalink
feature #2361 close #2360 add fulltext title attribute in "list-strin…
Browse files Browse the repository at this point in the history
…g-fields" (mike3012)

This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #2361).

Discussion
----------

close #2360 add fulltext title attribute in "list-string-fields"

close #2360 add full text title attribute in "list-string-fields"

Commits
-------

e8c9a0d close #2360 add fulltext title attribute in "list-string-fields"
  • Loading branch information
javiereguiluz committed Sep 22, 2018
2 parents df61c5b + e8c9a0d commit be2259c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Resources/views/default/field_string.html.twig
@@ -1,5 +1,7 @@
{% if view == 'show' %}
{{ value|nl2br }}
{% elseif view == 'list' %}
<span title="{{ value }}">{{ value|easyadmin_truncate }}</span>
{% else %}
{{ value|striptags|easyadmin_truncate }}
{% endif %}
{% endif %}

0 comments on commit be2259c

Please sign in to comment.