diff --git a/view/app.py b/view/app.py index b7468cb..a9ce493 100644 --- a/view/app.py +++ b/view/app.py @@ -48,7 +48,7 @@ def index(): query = websearch_to_fts_query(search) if search else None # View options - compact_diffs = request.args.get("compact_diffs") is not None + expand_diffs = request.args.get("expand_diffs") is not None db.execute(f"SELECT count(*) FROM diffs{'_fts(?)' if query else ''}", (query,) if query else ()) @@ -80,7 +80,7 @@ def index(): pagination=pagination, diff_count = diff_count, search=search, - compact_diffs=compact_diffs, + expand_diffs=expand_diffs, ) diff --git a/view/templates/index.html b/view/templates/index.html index fbae8f8..63265a8 100644 --- a/view/templates/index.html +++ b/view/templates/index.html @@ -23,13 +23,13 @@ @@ -50,9 +50,7 @@
- {% if compact_diffs %} -