diff --git a/brutaldon/templates/base.html b/brutaldon/templates/base.html index 78836dd..7682fe8 100644 --- a/brutaldon/templates/base.html +++ b/brutaldon/templates/base.html @@ -119,7 +119,10 @@ New Toot - + Search diff --git a/brutaldon/templates/intercooler/search.html b/brutaldon/templates/intercooler/search.html new file mode 100644 index 0000000..68bfff3 --- /dev/null +++ b/brutaldon/templates/intercooler/search.html @@ -0,0 +1,37 @@ +
+ + + + diff --git a/brutaldon/views.py b/brutaldon/views.py index f42d4a6..d9e111e 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -777,9 +777,15 @@ def mute(request, id): @br_login_required def search(request): account, mastodon = get_usercontext(request) - return render(request, 'main/search.html', + if request.GET.get('ic-request'): + return render(request, 'intercooler/search.html', {"preferences": account.preferences, - 'own_acct': request.session['user'], + 'own_acct': request.session['user'], + }) + else: + return render(request, 'main/search.html', + {"preferences": account.preferences, + 'own_acct': request.session['user'], }) @br_login_required