Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: karenc/SMS-Hunt
base: 8a4a21066c
...
head fork: karenc/SMS-Hunt
compare: f540ad3765
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 8 files changed
  • 0 commit comments
  • 2 contributors
Commits on Aug 07, 2011
@stefanha stefanha Change 'Create' to 'Add' in clues/teams editor
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
39503ee
@karenc Add background color for alternate rows in tables f540ad3
View
12 src/static/css/main.css
@@ -78,3 +78,15 @@ FORM {
padding: 10px 5px;
border-top: 2px solid #9BE;
}
+
+TABLE {
+ margin: 20px 0;
+}
+
+TH, TD {
+ padding: 5px 8px;
+}
+
+TR.even {
+ background-color: #ACE;
+}
View
7 src/static/js/list-edit.js
@@ -9,7 +9,6 @@ function ListEdit(values, elementId, headers, fields) {
var th = jQuery('<th></th>').appendTo(tr);
th.text(headers[i]);
}
- jQuery('<th>Delete</th>').appendTo(tr);
this.render(values);
@@ -49,11 +48,11 @@ ListEdit.prototype.render = function(values) {
}
jQuery('.Delete').click(this.addEventHandler('deleteValue'));
- this.element.append(this.renderValue({}, 'Create'));
- jQuery('.Create').click(this.addEventHandler('createValue'));
+ this.element.append(this.renderValue({}, 'Add'));
+ jQuery('.Add').click(this.addEventHandler('addValue'));
};
-ListEdit.prototype.createValue = function(e, element) {
+ListEdit.prototype.addValue = function(e, element) {
var tr = jQuery(element).parent().parent();
var i;
var value = {};
View
3  src/static/js/main.js
@@ -0,0 +1,3 @@
+jQuery(document).ready(function() {
+ jQuery('table.with-color tr:even').addClass('even');
+});
View
2  src/templates/clues.html
@@ -18,7 +18,7 @@
<div class="tab-content">
{% if started %}
<form action="" method="post">
- <table>
+ <table class="with-color">
<tr>
<th>Question</th>
<th>Answer</th>
View
6 src/templates/hunt.html
@@ -20,11 +20,7 @@
<input type="submit" value="Start hunt" />
</form>
{% endif %}
- <div>
- <a href="/hunt/{{ hunt.key.id }}/clues">Clues</a>
- <a href="/hunt/{{ hunt.key.id }}/teams">Teams</a>
- </div>
- <table>
+ <table class="with-color">
<tr><th>Question/Team</th>
{% for team in hunt.teams %}
<th>{{ team.name }}</th>
View
2  src/templates/include-head.html
@@ -1 +1,3 @@
+<script type="text/javascript" src="/js/jquery-1.6.2.min.js"></script>
+<script type="text/javascript" src="/js/main.js"></script>
<link rel="stylesheet" href="/css/main.css" type="text/css" media="screen" />
View
2  src/templates/index.html
@@ -17,7 +17,7 @@
</div>
<div>
<h2>Your Hunts:</h2>
- <table>
+ <table class="with-color">
<tr>
<th style="width: 130px">Hunt Name</th>
<th style="width: 130px">Status</th>
View
2  src/templates/teams.html
@@ -18,7 +18,7 @@
<div class="tab-content">
{% if started %}
<form action="" method="post">
- <table>
+ <table class="with-color">
<tr>
<th>Name</th>
<th>Phone Number</th>

No commit comments for this range

Something went wrong with that request. Please try again.