mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Added tests
This commit is contained in:
parent
49b042dfdf
commit
32f455c131
6 changed files with 73 additions and 5 deletions
|
@ -110,8 +110,7 @@ class EntryRepository extends EntityRepository
|
|||
$qb
|
||||
->andWhere('e.content LIKE :term OR e.title LIKE :term')->setParameter('term', '%'.$term.'%')
|
||||
->leftJoin('e.tags', 't')
|
||||
->groupBy('e.id')
|
||||
->having('count(t.id) = 0');
|
||||
->groupBy('e.id');
|
||||
|
||||
return $qb;
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ entry:
|
|||
archived: "Articles lus"
|
||||
filtered: "Articles filtrés"
|
||||
filtered_tags: "Articles filtrés par tags :"
|
||||
filtered_search: 'Articles filtrés par une recherche :'
|
||||
filtered_search: 'Articles filtrés par recherche :'
|
||||
untagged: "Article sans tag"
|
||||
list:
|
||||
number_on_the_page: "{0} Il n’y a pas d’articles.|{1} Il y a un article.|]1,Inf[ Il y a %count% articles."
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
<span class="black-text">{{ form_errors(form.term) }}</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
|
||||
|
||||
{{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<li class="menu new"><a href="{{ path('new') }}">{{ 'menu.left.save_link'|trans }}</a></li>
|
||||
<li style="position: relative;"><a href="javascript: void(null);" id="search">{{ 'menu.left.search'|trans }}</a>
|
||||
<div id="search-form" class="messages info popup-form">
|
||||
{{ render(controller("WallabagCoreBundle:Entry:searchForm")) }}
|
||||
{{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
|
||||
</div>
|
||||
</li>
|
||||
<li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue