summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@cmu.edu>2011-05-13 17:43:03 -0400
committerraylu <raylu@cmu.edu>2011-05-13 17:43:03 -0400
commitd31422d4908dcb0d63b372ce9c10e371a0b4113c (patch)
tree184ecee9308b1ba97b34689170137045c1ebabb6
parenta0ca3616ad50ecde9d7ab1be2cc07337e87c3f9f (diff)
downloadpyc-d31422d4908dcb0d63b372ce9c10e371a0b4113c.tar.xz
Cosmetic changes to the table and first lab
-rw-r--r--pyc/templates/base.html1
-rw-r--r--pyc/templates/lab.html4
-rw-r--r--static/lab1.py2
-rw-r--r--static/style.css11
4 files changed, 15 insertions, 3 deletions
diff --git a/pyc/templates/base.html b/pyc/templates/base.html
index 65aa2f2..6779635 100644
--- a/pyc/templates/base.html
+++ b/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 %}
diff --git a/pyc/templates/lab.html b/pyc/templates/lab.html
index 090b2ef..ca2ceae 100644
--- a/pyc/templates/lab.html
+++ b/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.
diff --git a/static/lab1.py b/static/lab1.py
index d9d4dc2..c0c4812 100644
--- a/static/lab1.py
+++ b/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():
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..ad93cac
--- /dev/null
+++ b/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;
+}