diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2016-11-18 17:36:19 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2016-11-19 20:05:16 +0100 |
commit | 32f455c1317bf536aea63147d2c5074ae7425d42 (patch) | |
tree | 5088c6a25dd29915f3c7de1411b86b9633166a72 /src | |
parent | 49b042dfdf33a0efd3c838e1476754e6019730d2 (diff) | |
download | wallabag-32f455c1317bf536aea63147d2c5074ae7425d42.tar.gz wallabag-32f455c1317bf536aea63147d2c5074ae7425d42.tar.zst wallabag-32f455c1317bf536aea63147d2c5074ae7425d42.zip |
Added tests
Diffstat (limited to 'src')
4 files changed, 5 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 51cfe4d1..47e24d6b 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -110,8 +110,7 @@ class EntryRepository extends EntityRepository | |||
110 | $qb | 110 | $qb |
111 | ->andWhere('e.content LIKE :term OR e.title LIKE :term')->setParameter('term', '%'.$term.'%') | 111 | ->andWhere('e.content LIKE :term OR e.title LIKE :term')->setParameter('term', '%'.$term.'%') |
112 | ->leftJoin('e.tags', 't') | 112 | ->leftJoin('e.tags', 't') |
113 | ->groupBy('e.id') | 113 | ->groupBy('e.id'); |
114 | ->having('count(t.id) = 0'); | ||
115 | 114 | ||
116 | return $qb; | 115 | return $qb; |
117 | } | 116 | } |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index d5c00e52..d97eab26 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | |||
@@ -162,7 +162,7 @@ entry: | |||
162 | archived: "Articles lus" | 162 | archived: "Articles lus" |
163 | filtered: "Articles filtrés" | 163 | filtered: "Articles filtrés" |
164 | filtered_tags: "Articles filtrés par tags :" | 164 | filtered_tags: "Articles filtrés par tags :" |
165 | filtered_search: 'Articles filtrés par une recherche :' | 165 | filtered_search: 'Articles filtrés par recherche :' |
166 | untagged: "Article sans tag" | 166 | untagged: "Article sans tag" |
167 | list: | 167 | list: |
168 | 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." | 168 | 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." |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig index 818513f3..20821b6d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig | |||
@@ -9,6 +9,8 @@ | |||
9 | <span class="black-text">{{ form_errors(form.term) }}</span> | 9 | <span class="black-text">{{ form_errors(form.term) }}</span> |
10 | {% endif %} | 10 | {% endif %} |
11 | 11 | ||
12 | <input type="hidden" name="currentRoute" value="{{ currentRoute }}" /> | ||
13 | |||
12 | {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }} | 14 | {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }} |
13 | 15 | ||
14 | {{ form_rest(form) }} | 16 | {{ form_rest(form) }} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig index fc024aff..07ff8e14 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig | |||
@@ -33,7 +33,7 @@ | |||
33 | <li class="menu new"><a href="{{ path('new') }}">{{ 'menu.left.save_link'|trans }}</a></li> | 33 | <li class="menu new"><a href="{{ path('new') }}">{{ 'menu.left.save_link'|trans }}</a></li> |
34 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{{ 'menu.left.search'|trans }}</a> | 34 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{{ 'menu.left.search'|trans }}</a> |
35 | <div id="search-form" class="messages info popup-form"> | 35 | <div id="search-form" class="messages info popup-form"> |
36 | {{ render(controller("WallabagCoreBundle:Entry:searchForm")) }} | 36 | {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} |
37 | </div> | 37 | </div> |
38 | </li> | 38 | </li> |
39 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> | 39 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> |