From abcde5044ee86b4232b30736634db2368564d5a0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 21 Oct 2021 00:21:12 +0800 Subject: Mobile view for /admin/umbrellas --- jimbrella/web.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jimbrella/web.py') diff --git a/jimbrella/web.py b/jimbrella/web.py index 73b0659..0b32ce0 100644 --- a/jimbrella/web.py +++ b/jimbrella/web.py @@ -1,4 +1,5 @@ from flask import Flask, request, render_template +from user_agents import parse as user_agent from .database import Database from .config import * @@ -26,6 +27,7 @@ def admin_umbrellas(): return render_template( "admin/umbrellas.html", umbrellas=umbrellas, + mobile=user_agent(request.user_agent.string).is_mobile, ) -- cgit v1.2.3