Browse Source

Cosmetic changes to the table and first lab

raylu 14 years ago
parent
commit
d31422d490
4 changed files with 15 additions and 3 deletions
  1. 1 0
      pyc/templates/base.html
  2. 2 2
      pyc/templates/lab.html
  3. 1 1
      static/lab1.py
  4. 11 0
      static/style.css

+ 1 - 0
pyc/templates/base.html

@@ -3,6 +3,7 @@
 <head>
 	<meta charset="UTF-8">
 	<title>pyc</title>
+	<link href="/static/style.css" rel="stylesheet" type="text/css" charset="utf8">
 </head>
 <body>
 {% block body %}{% endblock %}

+ 2 - 2
pyc/templates/lab.html

@@ -4,7 +4,7 @@ Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
 <br>{{ lab.name }}
 <br><a href="/static/lab{{ lab.id }}.py">Download</a> the starter code
 
-<table>
+<p><table>
 <tr>
 	<th>User</th>
 	<th>Grade</th>
@@ -17,7 +17,7 @@ Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
 	<td>{{ s.time }}</td>
 	</tr>
 {% endfor %}
-</table>
+</table></p>
 
 <p>
 Users' highest scores and earliest time with that score are displayed.

+ 1 - 1
static/lab1.py

@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # Welcome to the test of pyc! Thanks for participating.
-# This weeks assignment is to create a function called 'test' that returns 1
+# This week's assignment is to create a function called 'test' that returns 1
 # Your code will be run in a sandbox, so print statements are not allowed.
 
 def test():

+ 11 - 0
static/style.css

@@ -0,0 +1,11 @@
+table {
+	border-collapse: collapse;
+	border: 1px solid #000;
+}
+th {
+	padding: 5px;
+}
+td {
+	border: 1px solid #000;
+	padding: 5px;
+}