Eduard Pech a6b0f07be2
Fix "Display 1 to 0 of 0 URLs" on admin list page (#3910)
* Update index.php

You know how it is - you got something perfect, a bleach-white shirt, and people will notice the tiniest speck. This one fixes the message "Display 1 to 0 of 0 URLs." on a new installation.
Best regards from your friendly autist. ;-)

* Update index.php

Using yourls__ for text string now

* Update index.php

oops, missing closing parenthesis

* Update index.php

Message on zero URLs has been made more universal:
- If no URLs in database, "No URLs."
- If no URLs found while searching with filters, an additional recommendation to be less specific is added.

Later it still outputs ", counting 0 clicks." - which I don't consider helpful in this particular case. But let's not lump everything into one big pull request. And the "proper" behaviour is not for me to decide anyway.

So I think, my original idea "is done here."

* Code feedback in the form of a commit

Tab! Apply directly to the SPACES!

Also more nuanced logic: only show "counting _n_ clicks" if there are
more than 0 items.

* check $search with empty

Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>

---------

Co-authored-by: dgw <dgw@technobabbl.es>
Co-authored-by: Léo Colombaro <LeoColomb@users.noreply.github.com>
2025-05-01 23:01:48 +00:00
..
2022-10-05 00:38:24 +02:00