Render and return CSS snippets from the nodes and modules.
()
| 598 | @pgCSRFProtect.exempt |
| 599 | @pga_login_required |
| 600 | def browser_css(): |
| 601 | """Render and return CSS snippets from the nodes and modules.""" |
| 602 | snippets = [] |
| 603 | |
| 604 | for submodule in blueprint.submodules: |
| 605 | snippets.extend(submodule.csssnippets) |
| 606 | return make_response( |
| 607 | render_template( |
| 608 | 'browser/css/browser.css', snippets=snippets, _=gettext |
| 609 | ), |
| 610 | 200, {'Content-Type': 'text/css'}) |
| 611 | |
| 612 | |
| 613 | @blueprint.route("/nodes/", endpoint="nodes") |
nothing calls this directly
no test coverage detected