mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Gold purchase amount dropdowns: reduce choices
This commit is contained in:
committed by
Brian Simpson
parent
0a183a1ec2
commit
c9ab064c2a
@@ -64,13 +64,17 @@
|
||||
</%def>
|
||||
|
||||
<%def name="gold_dropdown(what)">
|
||||
<%!
|
||||
month_options = (1, 3)
|
||||
year_options = (1, 2, 3)
|
||||
%>
|
||||
<select name="months" class="gold-dropdown">
|
||||
%for i in range(1, 8):
|
||||
%for i in month_options:
|
||||
<option value="${i}">
|
||||
${unsafe(Score.somethings(i, what))}: ${g.gold_month_price * i}
|
||||
</option>
|
||||
%endfor
|
||||
%for i in range(1, 4):
|
||||
%for i in year_options:
|
||||
<option value="${i * 12}" ${"SELECTED" if i == 1 else ""}>
|
||||
${unsafe(Score.somethings(i * 12, what))}   (special price!): ${g.gold_year_price * i}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user