]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1461 from wallabag/v2-test-for-www
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Tue, 6 Oct 2015 07:16:52 +0000 (09:16 +0200)
committerJeremy Benoist <j0k3r@users.noreply.github.com>
Tue, 6 Oct 2015 07:16:52 +0000 (09:16 +0200)
fix #1433: add test for removeWww Twig Extension

1  2 
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index 9fb820b4a5bdd7086f4a9efa2cce4fa1697ab764,896b5376011d9c997d50e17520e24529f0ab1b2e..7230506c347fd8e9882445470aad369ad920356d
@@@ -144,13 -144,9 +144,13 @@@ main 
              <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit title{% endtrans %}">✎</a></h1>
          </header>
          <aside>
-             <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link mdi-content-link"> <span>{{ entry.domainName }}</span></a>
+             <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link mdi-content-link"> <span>{{ entry.domainName|removeWww }}</span></a>
              <div id="list">
 -                {% for tag in entry.tags %}<span><a href="#">{{ tag.label }}</a></span>{% endfor %}
 +                {% for tag in entry.tags %}
 +                    <div class="chip">
 +                    {{ tag.label }}
 +                    </div>
 +                {% endfor %}
              </div>
  
              {% if entry.previewPicture is not null %}