Permalink
Browse files

Switching to static HTML.

 We ended up timing out pages in the jinja rendering stage, because we
 had to generate the same HTML over and over.

 It's a bit of a maint-dent, but it's a huge speed pickup
  • Loading branch information...
1 parent e172d2f commit 796c578d57ea72a4ec9d8c3038eb9ee18b6cd7e8 Paul Tagliamonte committed Aug 15, 2012
Showing with 46 additions and 4 deletions.
  1. +46 −4 billy/web/admin/templates/billy/subjects.html
@@ -33,11 +33,53 @@
/></td>
<td>
<select name = '{{sub.2}}-normal' multiple class = 'mselect' >
-{% for sub in normalized_subjects %}
- <option value = '{{sub}}' >{{sub}}</option>
-{% endfor %}
- </td>
+ <option value = 'Agriculture and Food' >Agriculture and Food</option>
+ <option value = 'Animal Rights and Wildlife Issues' >Animal Rights and Wildlife Issues</option>
+ <option value = 'Arts and Humanities' >Arts and Humanities</option>
+ <option value = 'Budget, Spending, and Taxes' >Budget, Spending, and Taxes</option>
+ <option value = 'Business and Consumers' >Business and Consumers</option>
+ <option value = 'Campaign Finance and Election Issues' >Campaign Finance and Election Issues</option>
+ <option value = 'Civil Liberties and Civil Rights' >Civil Liberties and Civil Rights</option>
+ <option value = 'Commerce' >Commerce</option>
+ <option value = 'Crime' >Crime</option>
+ <option value = 'Drugs' >Drugs</option>
+ <option value = 'Education' >Education</option>
+ <option value = 'Energy' >Energy</option>
+ <option value = 'Environmental' >Environmental</option>
+ <option value = 'Executive Branch' >Executive Branch</option>
+ <option value = 'Family and Children Issues' >Family and Children Issues</option>
+ <option value = 'Federal, State, and Local Relations' >Federal, State, and Local Relations</option>
+ <option value = 'Gambling and Gaming' >Gambling and Gaming</option>
+ <option value = 'Government Reform' >Government Reform</option>
+ <option value = 'Guns' >Guns</option>
+ <option value = 'Health' >Health</option>
+ <option value = 'Housing and Property' >Housing and Property</option>
+ <option value = 'Immigration' >Immigration</option>
+ <option value = 'Indigenous Peoples' >Indigenous Peoples</option>
+ <option value = 'Insurance' >Insurance</option>
+ <option value = 'Judiciary' >Judiciary</option>
+ <option value = 'Labor and Employment' >Labor and Employment</option>
+ <option value = 'Legal Issues' >Legal Issues</option>
+ <option value = 'Legislative Affairs' >Legislative Affairs</option>
+ <option value = 'Military' >Military</option>
+ <option value = 'Municipal and County Issues' >Municipal and County Issues</option>
+ <option value = 'Nominations' >Nominations</option>
+ <option value = 'Other' >Other</option>
+ <option value = 'Public Services' >Public Services</option>
+ <option value = 'Recreation' >Recreation</option>
+ <option value = 'Reproductive Issues' >Reproductive Issues</option>
+ <option value = 'Resolutions' >Resolutions</option>
+ <option value = 'Science and Medical Research' >Science and Medical Research</option>
+ <option value = 'Senior Issues' >Senior Issues</option>
+ <option value = 'Sexual Orientation and Gender Issues' >Sexual Orientation and Gender Issues</option>
+ <option value = 'Social Issues' >Social Issues</option>
+ <option value = 'State Agencies' >State Agencies</option>
+ <option value = 'Technology and Communication' >Technology and Communication</option>
+ <option value = 'Trade' >Trade</option>
+ <option value = 'Transportation' >Transportation</option>
+ <option value = 'Welfare and Poverty' >Welfare and Poverty</option>
</select>
+ </td>
</tr>
{% endfor %}
</table>

0 comments on commit 796c578

Please sign in to comment.