[tor-commits] [bridgedb/master] Parametize captcha and bridges templates
aagbsn at torproject.org
aagbsn at torproject.org
Wed Apr 17 00:26:44 UTC 2013
commit 5beb96ba85064500fccd405f72666710222e2184
Author: aagbsn <aagbsn at extc.org>
Date: Mon Mar 25 01:10:13 2013 +0000
Parametize captcha and bridges templates
---
lib/bridgedb/templates/bridges.html | 11 +++++++----
lib/bridgedb/templates/captcha.html | 7 ++++---
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/lib/bridgedb/templates/bridges.html b/lib/bridgedb/templates/bridges.html
index df5c4c6..bf6f7d6 100644
--- a/lib/bridgedb/templates/bridges.html
+++ b/lib/bridgedb/templates/bridges.html
@@ -1,13 +1,16 @@
<%inherit file="base.html"/>
-<h2> Bridges </h3>
+<h2> Bridges </h2>
<br />
+% if answer:
<pre>
- bridge 0.1.2.3:2222
- bridge 0.1.2.3:9001
- bridge 0.1.2.3:9003
+${answer}
</pre>
<br />
<p >To use the above lines, go to Vidalia's Network settings page, and click "My ISP blocks connections to the Tor network". Then add each bridge address one at a time.
</p>
+</pre>
+% else:
+<h3> No bridges currently available </h3>
+% endif
<hr>
diff --git a/lib/bridgedb/templates/captcha.html b/lib/bridgedb/templates/captcha.html
index 984f02c..b037eed 100644
--- a/lib/bridgedb/templates/captcha.html
+++ b/lib/bridgedb/templates/captcha.html
@@ -1,9 +1,10 @@
<%inherit file="base.html"/>
<div class="captcha">
+<form action="" method="POST">
<input type="hidden" name="recaptcha_challenge_field"
- id="recaptcha_challenge_field" value="03AHJ_VuuEc-3bxAV4t4czoovajwas7ZxKMTAf8QumwzO6pjV_19gnLT-WIhfhgWaR_APT9K5aqaV-F2z9wja-1JrmHSVsWPzj8QHJTU0T2PHr-f3zY409BgWLp1cvpnHu36i_aArc6WpZ0Lw3hI8SEY6MybG9YyKmpZm2jcVobV3oA8iqNkkOsMw">
- <img width="300" height="57" alt="Upgrade your browser to Firefox" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2w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YFe80UUUUUUUUUUUUUUUUUUUUUUUUUVQubO0t4J7qKyg+0IHmDLEu4vtIznjkgkZyOp5r5e+Fg8Ka94m1MeOrmOae4jAt2vpnG5uQf3hbrjAGT9ORXXa9J8NbO0VtF8W6/FvUwTW+l3UkplSMchlfoDjAbO3n0rnvBfhf/hP77+xdKt73SvCEJ8y5nbme8IJ275AuxmBPC9FGepr0P4j+J9D8CeHX8L+FLKxXWL1vKFnaxZaLepXzCF/5afdAzycg8it34TfDyDwT4eW4uF3axfIr3LkEGMYBEWM4+Uk5PGT9BjxDx1qknxP+IWoS2sgg07S7WTbI+WAhiJy+B/eZuPqMnir3wR0nSX1O+8T+ImC2elxfuJbkfuhIMHIJPLKo+6AcbgfSvSvFXxXudRC6P8PbObVtQulRVvooiYbcuAeSwxuAIzuwFPXoRXE6r8FfFOj+EpbPSxaX1zckSahKjgPIobKxR7lztBAc8jccDBwM+2eALB9L8A6JZS2b2c0VoiywuAGD4+Yn0JOT+NdJRRRRRRRRRRRRRRRRRRRRRRRRRRRXO694D8L+JYW
j1TRbWVmYv5qL5cm49TvXB578896s6P4T0Hw/bPb6RpNrZq67WMcY3MMY5Y5J/HNcCvwQisIJU0Txhr+nMzhkKTYVBzuG1Ng5JHpjHvXher+GvEPhrx3cadpcepXF+sgWG5a2Aldjg70ILbTnkMGzj0zXuniseLbDwjp3grSINS1XVL61AutWmlz5K5Af5+MnnAzzg9Sa3/BPwy0nwn4aOmzw2l7ey7vPvTbKHcFsgc5OFwuBnqM1Sufgf4GunWR9PuRJvLyOLuQmUn+8ST+mOtdzpmlafotgljplnBaWqfdihQKM+vHU+/U1cooooooooooooooooooooooooooooooooooooooooooor//Z">
+ id="recaptcha_challenge_field" value="${challenge_field}">
+ <img width="300" height="57" alt="Upgrade your browser to Firefox" src="${imgstr}">
<div class="recaptcha_input_area">
<label for="recaptcha_response_field">Type the two words</label>
</div>
@@ -11,6 +12,6 @@
<input name="recaptcha_response_field" id="recaptcha_response_field"
type="text" autocomplete="off">
<input class="btn btn-success" type="submit" name="submit" value="I am human">
-
</div>
+</form>
<hr>
More information about the tor-commits
mailing list