Merge pull request #7805 from wallabag/update-import-page

Improved import page
This commit is contained in:
Nicolas Lœuillet 2024-11-14 18:38:22 +01:00 committed by GitHub
commit 316e0161c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 9 deletions

View file

@ -15,15 +15,20 @@
{% include 'Import/_information.html.twig' %}
{{ 'import.page_description'|trans }}
<ul>
<div class="row">
{% for import in imports %}
<li>
<h5>{{ import.name }}</h5>
<blockquote>{{ import.description|trans|raw }}</blockquote>
<p><a class="waves-effect waves-light btn" href="{{ path(import.url) }}">{{ 'import.action.import_contents'|trans }}</a></p>
</li>
<div class="col s6 m3">
<div class="card">
<div class="card-content">
<span class="card-title">{{ import.name }}</span>
</div>
<div class="card-action">
<a href="{{ path(import.url) }}">{{ 'import.action.import_contents'|trans }}</a>
</div>
</div>
</div>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>

View file

@ -22,8 +22,7 @@ class ImportControllerTest extends WallabagTestCase
$client = $this->getTestClient();
$crawler = $client->request('GET', '/import/');
$this->assertSame(200, $client->getResponse()->getStatusCode());
$this->assertSame(12, $crawler->filter('blockquote')->count());
$this->assertSame(12, $crawler->filter('.card-title')->count());
}
}