Module html

Module html 

Source
Expand description

Contains the methods to create a HTML file with statistics from a list of time logs.

Structsยง

ExtractedChartJs ๐Ÿ”’
The JavaScript extracted from the Charming-generated HTML files.
FileHtmlWriter ๐Ÿ”’
Default implementation that writes to actual files

Enumsยง

HtmlError
Errors that can occur during HTML file creation.

Traitsยง

HtmlWriter ๐Ÿ”’
Contains the method to abstract the writing of HTML files

Functionsยง

create_chart_divs ๐Ÿ”’
Creates a string with index number of <div> tags for each chart.
create_html
Creates a HTML file at path that contains statistics and charts about the given time logs.
create_html_string ๐Ÿ”’
Creates an HTML string from the given time logs and the HTML template which then is used to create the HTML page.
create_html_with_writer ๐Ÿ”’
Implementation of create_html() that takes a HtmlWriter to write the file.
create_table_timelogs_by_milestone ๐Ÿ”’
Creates a Table that shows the time spent per milestone.
create_table_timelogs_in_timeframes_by_user ๐Ÿ”’
Creates the Table that shows the time spent per user in the last N days.
create_table_total_time_by_label ๐Ÿ”’
Creates the Table that shows the time spent per label.
create_timestamp ๐Ÿ”’
Creates a string with the current timestamp in the ISO 8601 format.
extract_charming_chart_js ๐Ÿ”’
Extracts the content of the last <script> tag from an HTML string.
extract_js_from_html_files ๐Ÿ”’
Extracts the content of the last <script> tag from an HTML file.