-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show message for emtpy dataset search [FIX #1044] #1284
Conversation
taniki
commented
Nov 29, 2017
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be carefull: your editor seems to have erroneous indentation settings. Try to keep previous indentions rules: 4 spaces, no tabs
udata/templates/dataset/list.html
Outdated
@@ -15,12 +15,16 @@ | |||
|
|||
{% block breadcrumb %} | |||
<li class="active"> | |||
{{ _('Datasets') }} | |||
{% if datasets.total == 0 %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if there is no results, the breadcrum should be Datasets
.
udata/templates/dataset/list.html
Outdated
{% if datasets.total == 0 %} | ||
<small>{{ _('No dataset') }}</small> | ||
{% else %} | ||
{{ _('Datasets') }} | ||
<small>{{ _('%(start)s to %(end)s on %(total)s', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the paging details can be hidden instead
udata/templates/dataset/list.html
Outdated
@@ -43,7 +47,15 @@ | |||
|
|||
{% block main_content %} | |||
<div class="row"> | |||
<div class="col-md-8 col-lg-9 smaller"> | |||
|
|||
{% if not datasets %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Express the opposite, it should be clearer: if datasets
... else
... (positive condition and nominal case first)
related to #1044 |