[tor-commits] [atlas/master] Fix error styling for Bootstrap 3
irl at torproject.org
irl at torproject.org
Sat Dec 2 22:08:49 UTC 2017
commit e98744a15762632e148c1932713ed36ea388a323
Author: Iain R. Learmonth <irl at fsfe.org>
Date: Sat Dec 2 22:08:24 2017 +0000
Fix error styling for Bootstrap 3
---
templates/aggregate/map.html | 6 +++---
templates/aggregate/search.html | 6 +++---
templates/search/do.html | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/templates/aggregate/map.html b/templates/aggregate/map.html
index 88224ff..8282e74 100644
--- a/templates/aggregate/map.html
+++ b/templates/aggregate/map.html
@@ -9,7 +9,7 @@
<p><a href="#">Return to home page</a></p>
</div>
<% } else if (error == 2) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>Backend error!</strong>
<p>Relay Search is unable to get a response from its backend server. This
probably means that the backend server is unavailable right now. This
@@ -18,7 +18,7 @@
what type of search queries are supported by Relay Search.</p>
</div>
<% } else if (error == 3) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>JavaScript Error!</strong><p>There is a problem with your
javascript environment, you may have noscript enabled on the remote
onionoo backend. Try temporarily allowing noscript to connect to the
@@ -26,7 +26,7 @@
href="https://trac.torproject.org/">the bugtracker.</a></p>
</div>
<% } else if (error == 5) { %>
- <div class="alert alert-error">
+ <div class="alert alert-warning">
<strong>No query submitted!</strong>
<p>The search query was found to be empty, which is not supported. You
must enter a search query in order to generate results. Please have a
diff --git a/templates/aggregate/search.html b/templates/aggregate/search.html
index 6505529..774d393 100644
--- a/templates/aggregate/search.html
+++ b/templates/aggregate/search.html
@@ -10,7 +10,7 @@
<p><a href="#">Return to home page</a></p>
</div>
<% } else if (error == 2) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>Backend error!</strong>
<p>Relay Search is unable to get a response from its backend server. This
probably means that the backend server is unavailable right now. This
@@ -19,7 +19,7 @@
what type of search queries are supported by Relay Search.</p>
</div>
<% } else if (error == 3) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>JavaScript Error!</strong><p>There is a problem with your
javascript environment, you may have noscript enabled on the remote
onionoo backend. Try temporarily allowing noscript to connect to the
@@ -27,7 +27,7 @@
href="https://trac.torproject.org/">the bugtracker.</a></p>
</div>
<% } else if (error == 5) { %>
- <div class="alert alert-error">
+ <div class="alert alert-warning">
<strong>No query submitted!</strong>
<p>The search query was found to be empty, which is not supported. You
must enter a search query in order to generate results. Please have a
diff --git a/templates/search/do.html b/templates/search/do.html
index a30fe96..5575c4c 100644
--- a/templates/search/do.html
+++ b/templates/search/do.html
@@ -10,7 +10,7 @@
<p><a href="#">Return to home page</a></p>
</div>
<% } else if (error == 2) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>Backend error!</strong>
<p>Relay Search is unable to get a response from its backend server. This
probably means that the backend server is unavailable right now. This
@@ -19,7 +19,7 @@
what type of search queries are supported by Relay Search.</p>
</div>
<% } else if (error == 3) { %>
- <div class="alert alert-error">
+ <div class="alert alert-danger">
<strong>JavaScript Error!</strong><p>There is a problem with your
javascript environment, you may have noscript enabled on the remote
onionoo backend. Try temporarily allowing noscript to connect to the
@@ -27,7 +27,7 @@
href="https://trac.torproject.org/">the bugtracker.</a></p>
</div>
<% } else if (error == 5) { %>
- <div class="alert alert-error">
+ <div class="alert alert-warning">
<strong>No query submitted!</strong>
<p>The search query was found to be empty, which is not supported. You
must enter a search query in order to generate results. Please have a
More information about the tor-commits
mailing list