Remove "Previous" elements until we know that all AVRs have support for it
Every AVR should have a "back" button anyways. Maybe some companion apps rely on it. Need to test that still.
This commit is contained in:
parent
c6f4fe1691
commit
6d6eb6c392
1 changed files with 0 additions and 4 deletions
|
@ -125,8 +125,6 @@ def landing(path):
|
||||||
|
|
||||||
@app.route('/' + PATH_ROOT + '/' + PATH_MY_STATIONS + '/')
|
@app.route('/' + PATH_ROOT + '/' + PATH_MY_STATIONS + '/')
|
||||||
def my_stations_landing():
|
def my_stations_landing():
|
||||||
page = vtuner.Page()
|
|
||||||
page.add(vtuner.Previous(url_for("landing", _external=True)))
|
|
||||||
directories = my_stations.get_category_directories()
|
directories = my_stations.get_category_directories()
|
||||||
return get_directories_page('my_stations_category', directories, request).to_string()
|
return get_directories_page('my_stations_category', directories, request).to_string()
|
||||||
|
|
||||||
|
@ -140,7 +138,6 @@ def my_stations_category(directory):
|
||||||
@app.route('/' + PATH_ROOT + '/' + PATH_RADIOBROWSER + '/')
|
@app.route('/' + PATH_ROOT + '/' + PATH_RADIOBROWSER + '/')
|
||||||
def radiobrowser_landing():
|
def radiobrowser_landing():
|
||||||
page = vtuner.Page()
|
page = vtuner.Page()
|
||||||
page.add(vtuner.Previous(url_for('landing', _external=True)))
|
|
||||||
page.add(vtuner.Directory('Genres', url_for('radiobrowser_genres', _external=True),
|
page.add(vtuner.Directory('Genres', url_for('radiobrowser_genres', _external=True),
|
||||||
len(radiobrowser.get_genre_directories())))
|
len(radiobrowser.get_genre_directories())))
|
||||||
page.add(vtuner.Directory('Countries', url_for('radiobrowser_countries', _external=True),
|
page.add(vtuner.Directory('Countries', url_for('radiobrowser_countries', _external=True),
|
||||||
|
@ -200,7 +197,6 @@ def station_search():
|
||||||
query = request.args.get('search')
|
query = request.args.get('search')
|
||||||
if not query or len(query) < 3:
|
if not query or len(query) < 3:
|
||||||
page = vtuner.Page()
|
page = vtuner.Page()
|
||||||
page.add(vtuner.Previous(url_for('landing', _external=True)))
|
|
||||||
page.add(vtuner.Display("Search query too short."))
|
page.add(vtuner.Display("Search query too short."))
|
||||||
page.set_count(1)
|
page.set_count(1)
|
||||||
return page.to_string()
|
return page.to_string()
|
||||||
|
|
Loading…
Reference in a new issue