From 911cba199157ceaf45d10f291c58529e8b4a2e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrer=20=C3=96zen?= Date: Sat, 10 Feb 2007 23:49:35 +0000 Subject: [PATCH] kendi css'ini kullan --- scripts/repostats.py | 51 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/scripts/repostats.py b/scripts/repostats.py index 465365c7..de128353 100755 --- a/scripts/repostats.py +++ b/scripts/repostats.py @@ -35,29 +35,68 @@ html_header = """ %(title)s - +
-
+ -
-

%(title)s

-
+
%(content)s
""" +css_template = """ +body { + margin-left:0; + margin-top:0; + margin-right:0; + background-image:url('http://www.pardus.org.tr/styles/images/HeadTile.png'); + background-repeat:repeat-x; + background-color: #FFF; +} + +#header-bugzilla { + background-image:url('http://www.pardus.org.tr/styles/images/HeadLogo.png'); + background-repeat:no-repeat; + background-position: 0px 0px; + height:119px; + padding-bottom:5px; +} + +a { + color: #F55400; + text-decoration: none; +} + +a:hover { + color: #444; + background-color:#EEE; +} + +.menu { + padding-left: 1em; + padding-top: 3px; + padding-bottom: 3px; + border-bottom: 1px solid #CCC; + border-top: 1px solid #CCC; +} + +.content { + margin: 0.5em; +} +""" + # default html templates (now obsolete) def_repo_sizes_html = u""" @@ -548,6 +587,8 @@ if __name__ == "__main__": if not os.path.exists("paksite/source"): os.makedirs("paksite/source") + file("paksite/stil.css", "w").write(css_template) + repo.report_html() for p in packagers.values(): p.report_html()