mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-25 18:41:05 +00:00
Improved import page
This commit is contained in:
parent
56545920f8
commit
9252ea55f2
2 changed files with 13 additions and 9 deletions
|
@ -15,15 +15,20 @@
|
||||||
{% include 'Import/_information.html.twig' %}
|
{% include 'Import/_information.html.twig' %}
|
||||||
|
|
||||||
{{ 'import.page_description'|trans }}
|
{{ 'import.page_description'|trans }}
|
||||||
<ul>
|
<div class="row">
|
||||||
{% for import in imports %}
|
{% for import in imports %}
|
||||||
<li>
|
<div class="col s6 m3">
|
||||||
<h5>{{ import.name }}</h5>
|
<div class="card">
|
||||||
<blockquote>{{ import.description|trans|raw }}</blockquote>
|
<div class="card-content">
|
||||||
<p><a class="waves-effect waves-light btn" href="{{ path(import.url) }}">{{ 'import.action.import_contents'|trans }}</a></p>
|
<span class="card-title">{{ import.name }}</span>
|
||||||
</li>
|
</div>
|
||||||
|
<div class="card-action">
|
||||||
|
<a href="{{ path(import.url) }}">{{ 'import.action.import_contents'|trans }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,8 +22,7 @@ class ImportControllerTest extends WallabagTestCase
|
||||||
$client = $this->getTestClient();
|
$client = $this->getTestClient();
|
||||||
|
|
||||||
$crawler = $client->request('GET', '/import/');
|
$crawler = $client->request('GET', '/import/');
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
$this->assertSame(12, $crawler->filter('blockquote')->count());
|
$this->assertSame(12, $crawler->filter('.card-title')->count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue