Editor Support

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jason
2026-05-05 15:42:30 -05:00
parent 9f7c078ccc
commit 29154bd651
32 changed files with 3698 additions and 17 deletions
+11 -1
View File
@@ -77,8 +77,16 @@
locationDisplay = `📍 ${currentLoc}`;
}
let manageProductsLink = '';
if (data.permissions && data.permissions.manage_products) {
manageProductsLink = ` | <a href="{{ url_for('products.product_manager') }}" style="color: #6a4c93; text-decoration: none; font-weight: 500; cursor: pointer;"
onmouseover="this.style.textDecoration='underline'"
onmouseout="this.style.textDecoration='none'"
title="Manage Products">Manage Products</a>`;
}
document.getElementById('userLocationInfo').innerHTML =
`👤 ${data.username} | ${locationDisplay}`;
`👤 ${data.username} | ${locationDisplay}${manageProductsLink}`;
}
} catch (error) {
console.error('Error loading user info:', error);
@@ -93,6 +101,8 @@
window.APP_BASE_URL = '';
// Set data path for the quiz
window.DATA_PATH = '{{ url_for("products.serve_data", filename="") }}';
// Set initial product if provided via URL
window.INITIAL_PRODUCT = '{{ initial_product or "" }}';
</script>
<script src="{{ url_for('products.serve_js', filename='script.js') }}"></script>
</body>