Skip to content
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

Merged
merged 3 commits into from
Dec 12, 2017
Merged

show message for emtpy dataset search [FIX #1044] #1284

merged 3 commits into from
Dec 12, 2017

Conversation

taniki
Copy link
Contributor

@taniki taniki commented Nov 29, 2017

image

Copy link
Contributor

@noirbizarre noirbizarre left a 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

@@ -15,12 +15,16 @@

{% block breadcrumb %}
<li class="active">
{{ _('Datasets') }}
{% if datasets.total == 0 %}
Copy link
Contributor

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.

{% if datasets.total == 0 %}
<small>{{ _('No dataset') }}</small>
{% else %}
{{ _('Datasets') }}
<small>{{ _('%(start)s to %(end)s on %(total)s',
Copy link
Contributor

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

@@ -43,7 +47,15 @@

{% block main_content %}
<div class="row">
<div class="col-md-8 col-lg-9 smaller">

{% if not datasets %}
Copy link
Contributor

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)

@taniki
Copy link
Contributor Author

taniki commented Nov 29, 2017

image

squashed and ready. it should also fix the messed up indenting

@taniki
Copy link
Contributor Author

taniki commented Dec 7, 2017

related to #1044

@noirbizarre 🆙

@taniki taniki self-assigned this Dec 12, 2017
@taniki taniki merged commit 5c1003a into opendatateam:master Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants