Skip to content

Commit de148bf

Browse files
committed
Fix RelMon styles
1 parent 3914bc8 commit de148bf

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Utilities/RelMon/python/directories2html.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,15 @@ def fairy_url_single(run,sample,version,plot_path,tier,draw_opts="",h=250,w=200)
7979
return fairy_url
8080

8181
#-------------------------------------------------------------------------------
82-
style_location="/cms-service-reldqm"
8382
def get_page_header(directory=None, standalone=False, additional_header=""):
84-
style_location="/cms-service-reldqm"
85-
if standalone:
86-
style_location = "https://raw.githubusercontent.com/cms-PdmV/RelMonService2/77c534ec93401ca5de222ac62a6422f02389dafc/report_website/" #RelMonService2
83+
8784
javascripts=''
8885
style=''
8986
tablestyle=''
9087
thead_h = 400
9188
wrapper_h = 1500
89+
style_location="https://cms-pdmv-prod.web.cern.ch/relmon//cms-service-reldqm/"
90+
9291
if directory!=None and len(directory.comparisons)>0:
9392
meta=directory.meta
9493
style='img.fail {border:1px solid #ff0000;}\n'+\
@@ -115,14 +114,13 @@ def get_page_header(directory=None, standalone=False, additional_header=""):
115114
javascripts=""
116115

117116

118-
119117
html='<html>'+\
120118
'<head>'+\
121119
'<title>RelMon Summary</title>'+\
122-
'<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>' + \
123-
'<link rel="stylesheet" href="%s/screen.css" type="text/css" media="screen, projection">'%style_location+\
124-
'<link rel="stylesheet" href="%s/print.css" type="text/css" media="print">'%style_location+\
125-
'<link rel="stylesheet" href="%s/fancy-type-screen.css" type="text/css" media="screen, projection">'%style_location+\
120+
'<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>' +\
121+
'<link rel="stylesheet" href="%s/screen.css" type="text/css" media="screen, projection">'%(style_location) +\
122+
'<link rel="stylesheet" href="%s/print.css" type="text/css" media="print">'%(style_location) +\
123+
'<link rel="stylesheet" href="%s/fancy-type-screen.css" type="text/css" media="screen, projection">'%(style_location) +\
126124
'<style type="text/css">'+\
127125
'.rotation {display: block;-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg); }'+\
128126
'%s'%style+\

0 commit comments

Comments
 (0)