grey out web page printed date
This commit is contained in:
parent
3c1dc868aa
commit
b661e436fb
@ -143,6 +143,9 @@ p.cssvalid,p.htmlvalid {float:left;margin-right:20px}
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.greyed-out {
|
||||||
|
color: grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<div class='divshowindex'><a class='showindex' href='http://${DomainName}/mailstats/'>Index of files</a></div>
|
<div class='divshowindex'><a class='showindex' href='http://${DomainName}/mailstats/'>Index of files</a></div>
|
||||||
<a class='nextlink' href='http://${DomainName}/mailstats/mailstats_for_${NextDate}.html'>Next</a></div> <!--format important here - used to insert see in browser for email -->
|
<a class='nextlink' href='http://${DomainName}/mailstats/mailstats_for_${NextDate}.html'>Next</a></div> <!--format important here - used to insert see in browser for email -->
|
||||||
<br />
|
<br />
|
||||||
<h2>${title}</h2>
|
<h2>${structure:title}</h2>
|
||||||
<br />
|
<br />
|
||||||
<div class="headerpanel">
|
<div class="headerpanel">
|
||||||
<div class = "innerheaderpanel">
|
<div class = "innerheaderpanel">
|
||||||
|
@ -951,7 +951,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
DomainName = get_value(ConfigDB, "DomainName", "type") #'bjsystems.co.uk' # $cdb->get('DomainName')->value;
|
DomainName = get_value(ConfigDB, "DomainName", "type") #'bjsystems.co.uk' # $cdb->get('DomainName')->value;
|
||||||
|
|
||||||
hello_string = "Mailstats:"+Mailstats_version+' for '+DomainName+" at "+formatted_datetime+" for "+analysis_date
|
hello_string = "Mailstats:"+Mailstats_version+' for '+DomainName+" for "+analysis_date+" Printed at:"+formatted_datetime
|
||||||
print(hello_string)
|
print(hello_string)
|
||||||
version_string = "Chameleon:"+chameleon_version+" Python:"+python_version
|
version_string = "Chameleon:"+chameleon_version+" Python:"+python_version
|
||||||
if isThonny:
|
if isThonny:
|
||||||
@ -1383,13 +1383,17 @@ if __name__ == "__main__":
|
|||||||
# Load the template
|
# Load the template
|
||||||
with open(template_path, 'r') as template_file:
|
with open(template_path, 'r') as template_file:
|
||||||
template_content = template_file.read()
|
template_content = template_file.read()
|
||||||
|
#Use the hello string to create a suitable heading for the web page
|
||||||
|
html_title = hello_string.replace("Printed at"," <span class='greyed-out'>Printed at")
|
||||||
|
html_title += "</span>"
|
||||||
|
|
||||||
# Create a Chameleon template instance
|
# Create a Chameleon template instance
|
||||||
try:
|
try:
|
||||||
template = PageTemplate(template_content)
|
template = PageTemplate(template_content)
|
||||||
# Render the template with the 2D array data and column headers
|
# Render the template with the 2D array data and column headers
|
||||||
try:
|
try:
|
||||||
rendered_html = template(array_2d=columnCounts_2d, column_headers=columnHeaders,
|
rendered_html = template(array_2d=columnCounts_2d, column_headers=columnHeaders,
|
||||||
reporting_date=analysis_date, title=hello_string,
|
reporting_date=analysis_date, title=html_title,
|
||||||
version=version_string,
|
version=version_string,
|
||||||
nolinks=nolinks,
|
nolinks=nolinks,
|
||||||
stacked_bar_graph=stacked_Bar_html,
|
stacked_bar_graph=stacked_Bar_html,
|
||||||
|
Loading…
Reference in New Issue
Block a user