Skip to content

Commit dda8493

Browse files
author
Kendrick
committed
shorten commit id with slice filter (twig >1.6)
1 parent e7ef825 commit dda8493

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/views/Collector/git.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{% if collector.commit %}
3434
<div class="sf-toolbar-info-piece">
3535
{% if collector.commiturl %}
36-
<a href="{{ collector.commiturl }}{{ collector.commit }}" target="_blank">{{ collector.commit }}</a>
36+
<a href="{{ collector.commiturl }}{{ collector.commit }}" target="_blank">{{ collector.commit[:7] }}</a>
3737
{% else %}
3838
{{ collector.commit }}
3939
{% endif %}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"symfony/framework-bundle": "~2.3",
1515
"symfony/twig-bundle": "~2.0",
16-
"twig/twig": "~1.12"
16+
"twig/twig": "~1.6"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "4.8.*"

0 commit comments

Comments
 (0)