Aug 17 - Update bulk actions for inspection/issue list
This commit is contained in:
@@ -143,6 +143,15 @@ def create_app(config_name='default'):
|
||||
from app.utils import storage as _storage
|
||||
app.jinja_env.globals['media_url'] = _storage.media_url
|
||||
|
||||
# Current page URL including its query string — what list pages hand to
|
||||
# their actions as `next` so filters survive an edit/delete round trip
|
||||
# (see utils/decorators.return_url). full_path always appends '?', which
|
||||
# is harmless but makes for ugly links, so strip a bare trailing one.
|
||||
def _current_url():
|
||||
from flask import request
|
||||
return request.full_path.rstrip('?') if request else ''
|
||||
app.jinja_env.globals['current_url'] = _current_url
|
||||
|
||||
# ── Design A/B test wiring (phase48) ──────────────────────────────────
|
||||
# Index the modern/ override templates once at boot, so get_template()
|
||||
# never has to touch the filesystem per request.
|
||||
|
||||
Reference in New Issue
Block a user