[Secure-testing-commits] r28799 - / bin static

Holger Levsen holger at moszumanska.debian.org
Mon Sep 15 19:16:44 UTC 2014


Author: holger
Date: 2014-09-15 19:16:44 +0000 (Mon, 15 Sep 2014)
New Revision: 28799

Added:
   static/
   static/style.css
Removed:
   bin/tracker_service.css
Modified:
   bin/tracker_service.py
Log:
introduce new directory and serve static files from there, currently just static/style.css

Deleted: bin/tracker_service.css
===================================================================
--- bin/tracker_service.css	2014-09-15 19:14:21 UTC (rev 28798)
+++ bin/tracker_service.css	2014-09-15 19:16:44 UTC (rev 28799)
@@ -1,133 +0,0 @@
-html {
-	font-size: 100%;
-	-webkit-text-size-adjust: 100%;
-    -ms-text-size-adjust:100%;
-}
-
-body {
-	width: 90%;
-	max-width: 1200px;
-	margin: 2em auto 1em;
-	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
-	font-size: 14px;
-	line-height: 20px;
-	color: #333333;
-}
-
-header {
-	border-bottom: 1px solid crimson;
-	margin-bottom: 2em;
-}
-
-a {
-	color:#0088cc;
-	text-decoration:none;
-}
-
-a:hover, a:focus {
-	color:#005580;
-	text-decoration:underline;
-}
-
-ul, li {
-	list-style: none;
-}
-
-ul, ol {
-	padding-left: 0;
-}
-
-h1 {
-	font-size : 250%;
-	padding: 0;
-	margin: 0;
-	line-height: 1.4em;
-}
-
-h2 {
-	font-size : 110%;
-	background: crimson;
-	margin: 1em 0 0;
-	padding: 0.5em;
-	color: #fff;
-	border-top-left-radius: 0.5em;
-	border-top-right-radius: 0.5em;
-}
-
-h3 {
-	font-size : 110%;
-}
-
-table {
-	width: 100%;
-	border: 1px solid #ddd;
-	border-radius: 0.5em;
-	border-collapse: collapse;
-	box-shadow: 0 1px 3px #eee;
-	margin-bottom: 2em;
-}
-
-tr(even) {
-	background-color: #fafafa;
-}
-
-td, th {
-	text-align: left;
-	padding: 0.25em 0.5em;
-	border-bottom: 1px solid #ddd;
-	border-collapse: collapse;
-	vertical-align: top;
-}
-
-table tr:last-child td {
-	border: none;
-}
-
-th {
-	background: #eee;
-	padding: 0.5em;
-}
-
-hr {
-	display: none;
-}
-
-footer {
-	text-align: center;
-	margin-top: 1em;
-}
-
-form {
-	text-align: center;
-	padding: 1em 0;
-	margin: 1em 0;
-	border-top: 1px solid #ddd;
-	border-bottom: 1px solid #ddd;
-}
-
-span.red { color: red; }
-span.purple { color: purple; }
-span.green { color: green; }
-span.dangerous { color: rgb(191,127,0); }
-
- at media all and (max-width: 641px) {
-	body {
-		font-size: 13px;
-	}
-	table {
-		table-layout: fixed;
-	}
-	td, th {
-		overflow: hidden;
-	}
-}
-
- at media all and (min-width: 641px) {
-	header {
-		background: url(https://tracker.debian.org/static/img/logo.png) top right no-repeat;
-		min-height: 60px;
-	}
-	h1 {
-		line-height: 2.4em;
-	}
-}

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2014-09-15 19:14:21 UTC (rev 28798)
+++ bin/tracker_service.py	2014-09-15 19:16:44 UTC (rev 28799)
@@ -150,7 +150,7 @@
         self.register('style.css', self.page_style_css)
 
     def page_style_css(self, path, params, url):
-        f=open('tracker_service.css', 'r')
+        f=open('../static/style.css', 'r')
 	content=f.read()
 	f.close()
         return BinaryResult(content,'text/css')

Copied: static/style.css (from rev 28798, bin/tracker_service.css)
===================================================================
--- static/style.css	                        (rev 0)
+++ static/style.css	2014-09-15 19:16:44 UTC (rev 28799)
@@ -0,0 +1,133 @@
+html {
+	font-size: 100%;
+	-webkit-text-size-adjust: 100%;
+    -ms-text-size-adjust:100%;
+}
+
+body {
+	width: 90%;
+	max-width: 1200px;
+	margin: 2em auto 1em;
+	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
+	font-size: 14px;
+	line-height: 20px;
+	color: #333333;
+}
+
+header {
+	border-bottom: 1px solid crimson;
+	margin-bottom: 2em;
+}
+
+a {
+	color:#0088cc;
+	text-decoration:none;
+}
+
+a:hover, a:focus {
+	color:#005580;
+	text-decoration:underline;
+}
+
+ul, li {
+	list-style: none;
+}
+
+ul, ol {
+	padding-left: 0;
+}
+
+h1 {
+	font-size : 250%;
+	padding: 0;
+	margin: 0;
+	line-height: 1.4em;
+}
+
+h2 {
+	font-size : 110%;
+	background: crimson;
+	margin: 1em 0 0;
+	padding: 0.5em;
+	color: #fff;
+	border-top-left-radius: 0.5em;
+	border-top-right-radius: 0.5em;
+}
+
+h3 {
+	font-size : 110%;
+}
+
+table {
+	width: 100%;
+	border: 1px solid #ddd;
+	border-radius: 0.5em;
+	border-collapse: collapse;
+	box-shadow: 0 1px 3px #eee;
+	margin-bottom: 2em;
+}
+
+tr(even) {
+	background-color: #fafafa;
+}
+
+td, th {
+	text-align: left;
+	padding: 0.25em 0.5em;
+	border-bottom: 1px solid #ddd;
+	border-collapse: collapse;
+	vertical-align: top;
+}
+
+table tr:last-child td {
+	border: none;
+}
+
+th {
+	background: #eee;
+	padding: 0.5em;
+}
+
+hr {
+	display: none;
+}
+
+footer {
+	text-align: center;
+	margin-top: 1em;
+}
+
+form {
+	text-align: center;
+	padding: 1em 0;
+	margin: 1em 0;
+	border-top: 1px solid #ddd;
+	border-bottom: 1px solid #ddd;
+}
+
+span.red { color: red; }
+span.purple { color: purple; }
+span.green { color: green; }
+span.dangerous { color: rgb(191,127,0); }
+
+ at media all and (max-width: 641px) {
+	body {
+		font-size: 13px;
+	}
+	table {
+		table-layout: fixed;
+	}
+	td, th {
+		overflow: hidden;
+	}
+}
+
+ at media all and (min-width: 641px) {
+	header {
+		background: url(https://tracker.debian.org/static/img/logo.png) top right no-repeat;
+		min-height: 60px;
+	}
+	h1 {
+		line-height: 2.4em;
+	}
+}




More information about the Secure-testing-commits mailing list