Skip to content
Snippets Groups Projects
Commit 93cde442 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

show inflected suggestion in no_results

parent 909031f4
No related branches found
No related tags found
No related merge requests found
......@@ -76,20 +76,19 @@
color=primary>error</v-icon> <strong>{{$t('notifications.no_results')}}<span
v-if="pos_selected">{{$t('notifications.no_pos_results', {pos: $t('pos_tags_plural.'+pos_selected)})}}</span></strong>
</p>
<p v-if="!article && !no_results && inflection_suggestions && inflection_suggestions.length">
<p class="below-notification" v-if="!article && inflection_suggestions && inflection_suggestions.length">
<em>{{$route.query.q}}</em>{{$t('notifications.inflected')}}
<span v-for="(item,index) in inflection_suggestions"
:key="index">
<router-link :to="generate_path(item[0])"
@click.native="suggestion_link(item[0])">{{item[0]}}</router-link>
{{index == inflection_suggestions.length-1? '.' : ', '}}
</span>
<p class="suggest_lang"
:key="index"><!--
--><router-link :to="generate_path(item[0])"
@click.native="suggestion_link(item[0])">{{item[0]}}</router-link><!--
-->{{index == inflection_suggestions.length-1? '.' : ', '}}</span>
<p class="below-notification"
v-if="lang=='bm'">{{$t('notifications.suggest_dict[0]')}}<br>{{$t('notifications.suggest_dict[1]')}}
<router-link :to="generate_path($route.query.q, {lang: 'nn'})"
@click.native="language_link('nn')">{{$t('dicts.nn')}}</router-link>
</p>
<p class="suggest_lang"
<p class="below-notification"
v-if="lang=='nn'">{{$t('notifications.suggest_dict[0]')}}<br>{{$t('notifications.suggest_dict[1]')}}
<router-link :to="generate_path($route.query.q, {lang: 'nn'})"
@click.native="language_link('bm')">{{$t('dicts_inline.bm')}}</router-link>
......@@ -823,7 +822,7 @@ li.suggestion {
padding: 10px;
}
.suggest_lang {
.below-notification {
padding-left: 10px;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment