You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some parts of the HTML content are created by the JavaScript code. Namely, the tables and other HTML content in the "Show test details" section are created by instating elements and attributes by calling JavaScript functions.
Please see openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js, for example
This approach is tedious, laborious, hard to orient in and difficult to maintain. Moreover, it mixes a definition of the presentation layout with data processing.
Describe the solution you'd like
It would be great to employ Jinja 2 templates here or some other "templating" technology.
Describe alternatives you've considered
I haven't considered any alternatives yet. But I'm open to any proposals or suggestions.
Additional context
None
The text was updated successfully, but these errors were encountered:
@jan-cerny Javascript generates the OVAL graph because web browsers have problems with HTML files with many HTML tags. The OVAL graph is generated on demand by the user using the show_rule_detail function. Unfortunately, details of the OVAL test and state are included in the OVAL graph.
Is your feature request related to a problem? Please describe.
Some parts of the HTML content are created by the JavaScript code. Namely, the tables and other HTML content in the "Show test details" section are created by instating elements and attributes by calling JavaScript functions.
Please see openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js, for example
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 669 in 813a440
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 820 in 813a440
openscap-report/openscap_report/report_generators/html_templates/js/oval_graph_generation_script.js
Line 553 in 813a440
This approach is tedious, laborious, hard to orient in and difficult to maintain. Moreover, it mixes a definition of the presentation layout with data processing.
Describe the solution you'd like
It would be great to employ Jinja 2 templates here or some other "templating" technology.
Describe alternatives you've considered
I haven't considered any alternatives yet. But I'm open to any proposals or suggestions.
Additional context
None
The text was updated successfully, but these errors were encountered: