Changeset - 14c8f8c89402
[Not reviewed]
0 1 0
Brett Smith (brett) - 3 years ago 2018-09-03 14:48:39
brett@sfconservancy.org
blog: Fix syntax of blog.query's cycle calls.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/blog/query.html
Show inline comments
...
 
@@ -35,39 +35,39 @@ div.query_indent table tr td { padding-right: 3em; padding-bottom: .3em; }
 
{% block content %}
 

	
 
<form>
 

	
 
<p>Return posts written by any of these authors...</p>
 

	
 
<div class="query_indent">
 

	
 
<p><input type="checkbox" name="all" value="authors" id="all_authors"/> <label>All authors</label></p>
 

	
 
<table id="authors"><tr><td>
 
{% for author in authors %}
 
<input type="checkbox" name="author" value="{{ author.username}}"/> <label>{{ author.formal_name }}</label>{% cycle </td><td>,</td><td>,</td></tr><tr><td> %}
 
<input type="checkbox" name="author" value="{{ author.username}}"/> <label>{{ author.formal_name }}</label>{% cycle '</td><td>' '</td><td>' '</td></tr><tr><td>' %}
 
{% endfor %}
 
</td></tr></table>
 

	
 
</div>
 

	
 
<p>marked with any of these tags...</p>
 

	
 
<div class="query_indent">
 

	
 
<p><input type="checkbox" name="all" value="tags" id="all_tags"/> <label>All tags</label></p>
 

	
 
<table id="tags"><tr><td>
 
{% for tag in tags %}
 
<input type="checkbox" name="tag" value="{{ tag.slug }}"/> <label>{{ tag.label }}</label>{% cycle </td><td>,</td><td>,</td></tr><tr><td> %}
 
<input type="checkbox" name="tag" value="{{ tag.slug }}"/> <label>{{ tag.label }}</label>{% cycle '</td><td>' '</td><td>' '</td></tr><tr><td>' %}
 
{% endfor %}
 
</td></tr></table>
 

	
 
</div>
 

	
 
<p><input type="submit" value="View blog entries"/></p>
 
<p><input type="submit" value="View RSS feed" name="rss"/></p>
 

	
 
</form>
 

	
 
{% endblock %}
 

	
0 comments (0 inline, 0 general)