diff --git a/inventory-app/const.py b/inventory-app/const.py index f3ef6ea..3a55c9e 100644 --- a/inventory-app/const.py +++ b/inventory-app/const.py @@ -20,3 +20,4 @@ MONGO_URI = os.environ["MONGO_URI"] SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"] # used to verify (deprecated) incoming requests from slack SLACK_DOORLOG_CALLBACK = os.environ["SLACK_DOORLOG_CALLBACK"] # used for sending logs to private channel INVENTORY_API_KEY = os.environ["INVENTORY_API_KEY"] +MACADDRESS_OUTLINK_BASEURL = os.environ["MACADDRESS_OUTLINK_BASEURL"] diff --git a/inventory-app/inventory.py b/inventory-app/inventory.py index 420630c..21085bc 100644 --- a/inventory-app/inventory.py +++ b/inventory-app/inventory.py @@ -51,6 +51,8 @@ def view_inventory_view(item_id): can_edit = check_edit_permission(item_id) is_using = item_user and item_user == user["username"] photo_url = get_image_url(item_id) + # pylance: disable=unused-variable + constants = {"MACADDRESS_OUTLINK_BASEURL": const.MACADDRESS_OUTLINK_BASEURL} return render_template(template , **locals()) def get_image_url(item_id): diff --git a/inventory-app/templates/inventory_view.html b/inventory-app/templates/inventory_view.html index 6b4aa47..b0e5ae7 100644 --- a/inventory-app/templates/inventory_view.html +++ b/inventory-app/templates/inventory_view.html @@ -36,8 +36,8 @@ MAC address - - + + {{ item.mac }}