public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  1:52 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  1:52 UTC (permalink / raw
  To: gentoo-commits

commit:     3b346bc9dca9d2991702b5c2442737105f43e7a9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 01:44:21 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 01:44:21 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=3b346bc9

Update Google webmaster verification code so we can control GoogleBot rate.

---
 web/templates/layout.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 9fe1f92..82337d4 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -60,6 +60,8 @@ def alpha_url(baseurl):
         rel="search" type="application/opensearchdescription+xml" 
         href="http://www.gentoo.org/search/packages-gentoo-org.xml" 
         title="Gentoo Packages" />
+	  <meta name="google-site-verification" 
+			content="TghnZBoJySbGjLcdxG0LaQW4CEySKKUn-joa4u72Z2Q" />
     </head>
   </py:match>
   



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:08 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:08 UTC (permalink / raw
  To: gentoo-commits

commit:     7bbe6da213ec338d73b9c919b9be5749ef715277
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:08:10 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:08:10 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=7bbe6da2

Change Google CSE to redirect to a google page like it used to.

---
 web/templates/layout.html |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index ae1b646..4355f5d 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -72,12 +72,22 @@ def alpha_url(baseurl):
             <a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a>
         </div>
         <div id="search">
-            <div id="cse" style="width: 100%;">Loading</div>
             <script type="text/javascript"> 
+                var customSearchControl = null;
+                var cse_api_key = '018159084367138638961:rusorewqzfu';
+                function executeGoogleSearch() {
+                    var textNode = document.getElementById('search_input');
+                    if(textNode.value != '') {
+                        customSearchControl.execute(textNode.value)
+                    }
+                }
                 google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
                 google.setOnLoadCallback(function() {
-                    var customSearchControl = new google.search.CustomSearchControl('018159084367138638961:rusorewqzfu');
+                    customSearchControl = new google.search.CustomSearchControl(cse_api_key);
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
+                    var options = new google.search.DrawOptions();
+                    //options.enableSearchResultsOnly();     
+                    options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     customSearchControl.draw('cse');
                 }, true);
             </script>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:11 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:11 UTC (permalink / raw
  To: gentoo-commits

commit:     86f1f16367ea9e2d9b2d5bb82dbdfd0dfac8bdd3
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:10:57 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:10:57 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=86f1f163

More CSE UI.

---
 web/templates/layout.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 4355f5d..0ffd120 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -91,6 +91,8 @@ def alpha_url(baseurl):
                     customSearchControl.draw('cse');
                 }, true);
             </script>
+			<input type="text" id="search_input" />
+			<input type="button" onclick="executeGoogleSearch()" value="Search" />
         </div>
 		<div py:for="day, pvs in daylist">
 			<p>${day}</p>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:16 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:16 UTC (permalink / raw
  To: gentoo-commits

commit:     c10506851325d6dd47e5b1504b63c73f991ca65e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:16:36 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:16:36 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=c1050685

Even more CSE.

---
 web/templates/layout.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 0ffd120..e68bb52 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -87,10 +87,12 @@ def alpha_url(baseurl):
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                     var options = new google.search.DrawOptions();
                     //options.enableSearchResultsOnly();     
+					options.setAutoComplete(true);
                     options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     customSearchControl.draw('cse');
                 }, true);
             </script>
+			<div ide="cse" style="width: 100%;">Loading</div>
 			<input type="text" id="search_input" />
 			<input type="button" onclick="executeGoogleSearch()" value="Search" />
         </div>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:17 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:17 UTC (permalink / raw
  To: gentoo-commits

commit:     89d3d6f6f361a8f56e98db2783d487b000634f87
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:17:33 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:17:33 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=89d3d6f6

Debugging.

---
 web/templates/layout.html |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index e68bb52..db54fa1 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -78,6 +78,7 @@ def alpha_url(baseurl):
                 function executeGoogleSearch() {
                     var textNode = document.getElementById('search_input');
                     if(textNode.value != '') {
+						alert('Running search for '+textNode.value);
                         customSearchControl.execute(textNode.value)
                     }
                 }



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:18 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:18 UTC (permalink / raw
  To: gentoo-commits

commit:     207442d9562b851024cf2573ac327d26dcb0636d
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:18:08 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:18:08 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=207442d9

Fix typo.

---
 web/templates/layout.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index db54fa1..0cd182a 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -93,7 +93,7 @@ def alpha_url(baseurl):
                     customSearchControl.draw('cse');
                 }, true);
             </script>
-			<div ide="cse" style="width: 100%;">Loading</div>
+			<div id="cse" style="width: 100%;">Loading</div>
 			<input type="text" id="search_input" />
 			<input type="button" onclick="executeGoogleSearch()" value="Search" />
         </div>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:23 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:23 UTC (permalink / raw
  To: gentoo-commits

commit:     d94d92d9c504f3dd1a29a11d3c981a4d771f5660
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:23:16 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:23:16 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=d94d92d9

More CSE debug.

---
 web/templates/layout.html |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 0cd182a..8bf9671 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -88,8 +88,9 @@ def alpha_url(baseurl):
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                     var options = new google.search.DrawOptions();
                     //options.enableSearchResultsOnly();     
+                    options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
 					options.setAutoComplete(true);
-                    options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
+                    //options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     customSearchControl.draw('cse');
                 }, true);
             </script>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2011-07-08  2:28 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2011-07-08  2:28 UTC (permalink / raw
  To: gentoo-commits

commit:     886df2ea389104976eee87a728b469cc2ac1ab02
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 02:28:12 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 02:28:12 2011 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=886df2ea

CSE API seems annoying.

---
 web/templates/layout.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 8bf9671..3b75cbc 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -87,9 +87,9 @@ def alpha_url(baseurl):
                     customSearchControl = new google.search.CustomSearchControl(cse_api_key);
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                     var options = new google.search.DrawOptions();
-                    //options.enableSearchResultsOnly();     
-                    options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
-					options.setAutoComplete(true);
+                    options.setAutoComplete(true);
+                    options.enableSearchResultsOnly();     
+                    //options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     //options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     customSearchControl.draw('cse');
                 }, true);



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2012-07-06 19:04 Alec Warner
  0 siblings, 0 replies; 14+ messages in thread
From: Alec Warner @ 2012-07-06 19:04 UTC (permalink / raw
  To: gentoo-commits

commit:     1b2db0ee778d95c5979f6e732ba46fbedb6cb78d
Author:     Alec Warner <antarus <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  6 19:04:20 2012 +0000
Commit:     Alec Warner <antarus <AT> gentoo <DOT> org>
CommitDate: Fri Jul  6 19:04:20 2012 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=1b2db0ee

Don't alert people when we run a search.

---
 web/templates/layout.html |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 3b75cbc..6b7a38c 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -78,7 +78,6 @@ def alpha_url(baseurl):
                 function executeGoogleSearch() {
                     var textNode = document.getElementById('search_input');
                     if(textNode.value != '') {
-						alert('Running search for '+textNode.value);
                         customSearchControl.execute(textNode.value)
                     }
                 }



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2012-07-06 20:01 Alec Warner
  0 siblings, 0 replies; 14+ messages in thread
From: Alec Warner @ 2012-07-06 20:01 UTC (permalink / raw
  To: gentoo-commits

commit:     b80ee9c7ed5026b8d544d006ba14892ab43f476e
Author:     Alec Warner <antarus <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  6 20:00:18 2012 +0000
Commit:     Alec Warner <antarus <AT> gentoo <DOT> org>
CommitDate: Fri Jul  6 20:00:18 2012 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=b80ee9c7

Do not render an HTML search box (google will render one for us.)

Render search results in the center column. We do this via a div that is normally empty but gets populated when users click search.

---
 web/templates/layout.html |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 6b7a38c..0872ba1 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -87,16 +87,12 @@ def alpha_url(baseurl):
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                     var options = new google.search.DrawOptions();
                     options.setAutoComplete(true);
-                    options.enableSearchResultsOnly();     
-                    //options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
-                    //options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
-                    customSearchControl.draw('cse');
+                    options.setSearchFormRoot('cse');
+                    customSearchControl.draw('searchresults', options);
                 }, true);
             </script>
 			<div id="cse" style="width: 100%;">Loading</div>
-			<input type="text" id="search_input" />
-			<input type="button" onclick="executeGoogleSearch()" value="Search" />
-        </div>
+      </div>
 		<div py:for="day, pvs in daylist">
 			<p>${day}</p>
 			<ul>
@@ -213,6 +209,7 @@ def alpha_url(baseurl):
   </py:match>
   
   <py:match path="centerpkgs">
+    <div id="searchresults"></div>
     <div class="centerpkgs" py:for="pkg in center_pkgs">
         <p class="package"><a href="${relurl('/package/'+pkg.atom.key)}">${pkg.atom.cpvstr}</a></p>
         <p class="description">${pkg.meta.description}</p>



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2013-11-17 19:39 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2013-11-17 19:39 UTC (permalink / raw
  To: gentoo-commits

commit:     08aaf68e201d6cbe633c7b3469a8cd1ad361fce9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 19:39:07 2013 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 19:39:11 2013 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=08aaf68e

Update copyright date per bug #350759.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 web/templates/layout.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 0872ba1..a3fd195 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -188,7 +188,7 @@ def alpha_url(baseurl):
 
   <py:match path="footer">
   <div id="footer">
-      Copyright 2007 Gentoo Foundation, Inc.
+      Copyright 2007-2013 Gentoo Foundation, Inc.
     </div> 
   </py:match>
 


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2013-12-20 18:26 Alec Warner
  0 siblings, 0 replies; 14+ messages in thread
From: Alec Warner @ 2013-12-20 18:26 UTC (permalink / raw
  To: gentoo-commits

commit:     cde436526c920aa68495ce229b33de53a411f0e1
Author:     Alec Warner <antarus <AT> google <DOT> com>
AuthorDate: Fri Dec 20 18:26:02 2013 +0000
Commit:     Alec Warner <antarus <AT> gentoo <DOT> org>
CommitDate: Fri Dec 20 18:26:02 2013 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=cde43652

Change to https for google's jsapi.

This should fix bug 487664.

---
 web/templates/layout.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index a3fd195..258dfa0 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -62,7 +62,7 @@ def alpha_url(baseurl):
         title="Gentoo Packages" />
       <meta name="google-site-verification" 
             content="TghnZBoJySbGjLcdxG0LaQW4CEySKKUn-joa4u72Z2Q" />
-      <script src="http://www.google.com/jsapi" type="text/javascript"></script>
+      <script src="https://www.google.com/jsapi" type="text/javascript"></script>
     </head>
   </py:match>
   


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2014-07-15 18:03 Pavlos Ratis
  0 siblings, 0 replies; 14+ messages in thread
From: Pavlos Ratis @ 2014-07-15 18:03 UTC (permalink / raw
  To: gentoo-commits

commit:     137ed302d9e0d3b63e88c2cba1de0d03e2cdf9aa
Author:     Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 15 17:01:21 2014 +0000
Commit:     Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
CommitDate: Tue Jul 15 17:01:21 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=137ed302

update copyright, bug 512604

---
 web/templates/layout.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/templates/layout.html b/web/templates/layout.html
index 258dfa0..cebb3d5 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -188,7 +188,7 @@ def alpha_url(baseurl):
 
   <py:match path="footer">
   <div id="footer">
-      Copyright 2007-2013 Gentoo Foundation, Inc.
+      Copyright 2007-2014 Gentoo Foundation, Inc.
     </div> 
   </py:match>
 


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] packages:master commit in: web/templates/
@ 2015-03-21 19:06 Robin H. Johnson
  0 siblings, 0 replies; 14+ messages in thread
From: Robin H. Johnson @ 2015-03-21 19:06 UTC (permalink / raw
  To: gentoo-commits

commit:     6fede83211a808c45f2e7c5f5dc29c4d6337bedc
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 21 19:06:41 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Mar 21 19:06:41 2015 +0000
URL:        https://gitweb.gentoo.org/packages.git/commit/?id=6fede832

Genshi 0.6-0.7: the HTML function changed the default of encoding from utf-8 to None, and we need to specify it manually ourselves.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 web/templates/categories.html |  2 +-
 web/templates/index.xml       |  2 +-
 web/templates/layout.html     | 14 +++++++-------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/web/templates/categories.html b/web/templates/categories.html
index 02e6589..f878574 100644
--- a/web/templates/categories.html
+++ b/web/templates/categories.html
@@ -21,7 +21,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                 <tr py:for="row in center_categories">
                     <span py:for="cell in row" py:strip="True">
                         <td py:if="cell[0] is not None">
-                            <a href="${relurl('/category/'+cell[0])}">${HTML(cell[0])}</a> (${cell[1]}/${cell[2]})
+                            <a href="${relurl('/category/'+cell[0])}">${HTML(cell[0], encoding='utf-8')}</a> (${cell[1]}/${cell[2]})
                         </td>
                     </span>
                 </tr>

diff --git a/web/templates/index.xml b/web/templates/index.xml
index dc1a5ef..8bc852f 100644
--- a/web/templates/index.xml
+++ b/web/templates/index.xml
@@ -34,7 +34,7 @@ from datetime import datetime
       <uri>${links.ciavc_link(pkg.meta.authorid)}</uri>
     </author>
     <updated>${pkg.meta.ebuildchange.strftime("%Y-%m-%dT%H:%M:%SZ")}</updated>
-    <summary type="xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"><xhtml:div xmlns="http://www.w3.org/1999/xhtml">${HTML(pkg.meta.commitmsg)}</xhtml:div></summary>
+    <summary type="xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"><xhtml:div xmlns="http://www.w3.org/1999/xhtml">${HTML(pkg.meta.commitmsg, encoding='utf-8')}</xhtml:div></summary>
   </entry>
 
 </feed>

diff --git a/web/templates/layout.html b/web/templates/layout.html
index cebb3d5..71b0026 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -96,7 +96,7 @@ def alpha_url(baseurl):
 		<div py:for="day, pvs in daylist">
 			<p>${day}</p>
 			<ul>
-				<li py:for="pv,pn in pvs"><a href="${relurl('/package/'+pn)}">${HTML(pv)}</a></li>
+				<li py:for="pv,pn in pvs"><a href="${relurl('/package/'+pn)}">${HTML(pv, encoding='utf-8')}</a></li>
 			</ul>
 		</div>
     </div>
@@ -105,7 +105,7 @@ def alpha_url(baseurl):
   <py:match path="rightcontent" once="true">
     <div id="rightcontent">
       <p class="update">
-        Last update:<br />${HTML(lastmodified_rightcontent(lastupdate))}
+        Last update:<br />${HTML(lastmodified_rightcontent(lastupdate), encoding='utf-8')}
       </p>
       
       <div>
@@ -176,8 +176,8 @@ def alpha_url(baseurl):
   <table class="pkginfo">
       <tr>
           <td class="category"><a href="${relurl('/category/'+pkg.meta.atom.category)}">${pkg.meta.atom.category}</a></td>
-          <td class="homepage">${HTML(pkg.homepage)}</td>
-          <td class="license">${HTML(pkg.license)}</td>
+          <td class="homepage">${HTML(pkg.homepage, encoding='utf-8')}</td>
+          <td class="license">${HTML(pkg.license, encoding='utf-8')}</td>
 		  <td class="changelog" ><a href="${pkg.changelog}">ChangeLog</a> <a href="${pkg.metadataxml}">Metadata</a></td>
           <td class="similar" >Similar</td>
           <td class="bugz" ><a href="${pkg.bugzilla}">Bugs</a></td>
@@ -213,7 +213,7 @@ def alpha_url(baseurl):
     <div class="centerpkgs" py:for="pkg in center_pkgs">
         <p class="package"><a href="${relurl('/package/'+pkg.atom.key)}">${pkg.atom.cpvstr}</a></p>
         <p class="description">${pkg.meta.description}</p>
-      <div class="changelogmsg">${HTML(pkg.meta.commitmsg)}</div>
+      <div class="changelogmsg">${HTML(pkg.meta.commitmsg, encoding='utf-8')}</div>
 	  <!-- <pkgarches> -->
       <div style="overflow-x: auto">
 		  <table class="main">
@@ -235,8 +235,8 @@ def alpha_url(baseurl):
   <table class="pkginfo">
       <tr>
           <td class="category"><a href="${relurl('/category/'+pkg.meta.atom.category)}">${pkg.meta.atom.category}</a></td>
-          <td class="homepage">${HTML(pkg.homepage)}</td>
-          <td class="license">${HTML(pkg.license)}</td>
+          <td class="homepage">${HTML(pkg.homepage, encoding='utf-8')}</td>
+          <td class="license">${HTML(pkg.license, encoding='utf-8')}</td>
 		  <td class="changelog" ><a href="${pkg.changelog}">ChangeLog</a> <a href="${pkg.metadataxml}">Metadata</a></td>
           <td class="similar" >Similar</td>
           <td class="bugz" ><a href="${pkg.bugzilla}">Bugs</a></td>


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-03-21 19:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08  1:52 [gentoo-commits] packages:master commit in: web/templates/ Robin H. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2011-07-08  2:08 Robin H. Johnson
2011-07-08  2:11 Robin H. Johnson
2011-07-08  2:16 Robin H. Johnson
2011-07-08  2:17 Robin H. Johnson
2011-07-08  2:18 Robin H. Johnson
2011-07-08  2:23 Robin H. Johnson
2011-07-08  2:28 Robin H. Johnson
2012-07-06 19:04 Alec Warner
2012-07-06 20:01 Alec Warner
2013-11-17 19:39 Robin H. Johnson
2013-12-20 18:26 Alec Warner
2014-07-15 18:03 Pavlos Ratis
2015-03-21 19:06 Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox