Add Explore tab and query-less searching

Allows for exploration of all visible repositories, in paginated form.

This change also fixes the layout of the header on different viewport sizes to be consistently a single line in height.

Fixes https://jira.coreos.com/browse/QS-63
This commit is contained in:
Joseph Schorr 2017-11-28 16:50:23 +02:00
parent c7e439f593
commit 2ced523313
7 changed files with 39 additions and 30 deletions

View file

@ -347,9 +347,6 @@ class ConductRepositorySearch(ApiResource):
def get(self, parsed_args):
""" Get a list of apps and repositories that match the specified query. """
query = parsed_args['query']
if not query:
return {'results': []}
page = min(max(1, parsed_args['page']), 10)
offset = (page - 1) * MAX_PER_PAGE
limit = offset + MAX_PER_PAGE + 1