[Blends-commit] [SCM] website branch, master, updated. fe9181d1f0391c34bd2cf8bf2b2451d20cac4025

Andreas Tille tille at debian.org
Wed Jul 10 13:52:00 UTC 2013


The following commit has been merged in the master branch:
commit 64cd1738714232699d8cc237e9e89046698c5acf
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jul 10 15:19:20 2013 +0200

    Add Blends summary

diff --git a/webtools/templates/thermometer.xhtml b/webtools/templates/thermometer.xhtml
index 21fdcf5..55126d1 100644
--- a/webtools/templates/thermometer.xhtml
+++ b/webtools/templates/thermometer.xhtml
@@ -19,6 +19,17 @@
 <div class="heading" py:if="projectadvertising">
     <div class="tabBar" style="text-align: center;">$projectadvertising</div>
 </div>
+<table class="columns">
+<tr>
+  <td class="left">
+    <span class="section">$summary</span>
+    <div class="section">
+      <div class="sectionTop"></div>
+      <div class="row">${idxsummary}</div>
+    </div>
+  </td>
+  <td class="main">
+    <div class="pageBody">
 <table class="pkg">
 <caption><h3>$projectname Package Thermometer</h3></caption>
 <tr class='title'>
@@ -41,6 +52,10 @@
  </tr>
 </py:for>
 </table>
+    </div>
+  </td>
+</tr>
+</table>
 
 <div id="footer">
   <hr class="hidecss" />
diff --git a/webtools/templates/uthermometer.xhtml b/webtools/templates/uthermometer.xhtml
index 17ba519..e99a4f6 100644
--- a/webtools/templates/uthermometer.xhtml
+++ b/webtools/templates/uthermometer.xhtml
@@ -19,6 +19,17 @@
 <div class="heading" py:if="projectadvertising">
     <div class="tabBar" style="text-align: center;">$projectadvertising</div>
 </div>
+<table class="columns">
+<tr>
+  <td class="left">
+    <span class="section">$summary</span>
+    <div class="section">
+      <div class="sectionTop"></div>
+      <div class="row">${idxsummary}</div>
+    </div>
+  </td>
+  <td class="main">
+    <div class="pageBody">
 <table class="pkg">
 <caption><h3>Ubuntu $projectname Package Thermometer</h3></caption>
 <tr class='title'>
@@ -41,6 +52,10 @@
  </tr>
 </py:for>
 </table>
+    </div>
+  </td>
+</tr>
+</table>
 
 <div id="footer">
   <hr class="hidecss" />
diff --git a/webtools/thermometer.py b/webtools/thermometer.py
index 97a4ea7..3ecaed9 100755
--- a/webtools/thermometer.py
+++ b/webtools/thermometer.py
@@ -15,6 +15,7 @@ import re
 import time
 from datetime import datetime
 from email.Utils import formatdate
+import gettext
 
 from genshi.template import TemplateLoader
 from genshi import Markup
@@ -290,7 +291,11 @@ def main():
         os.unlink(uoutputfile)
     except: # simply continue if file does not exist
         pass
-    
+
+    # Initialize i18n
+    domain = 'blends-webtools'
+    gettext.install(domain)
+
     data={}
     data['projectname'] = blendname
     data['blend_data']  = blend_data
@@ -310,6 +315,13 @@ def main():
                ['obsolete',        'Obsolete']
              ]
     data['legend']     = legend
+    data['summary']           = to_unicode(_('Summary'))
+    data['idxsummary']        = to_unicode(_("""A %sDebian Pure Blend%s is a Debian internal project which assembles
+a set of packages that might help users to solve certain tasks of their work.  The list on
+the right shows the tasks of %s.""" ) \
+                                      % ('<a href="http://blends.alioth.debian.org/blends/">', '</a>', data['projectname']))
+    data['idxsummary']        = Markup(to_unicode(data['idxsummary']))
+
     for key in ('projecturl', 'projectname', 'logourl', 'advertising'):
         data[key] = config[key]
     # data['updatetimestamp']   = to_unicode(_('Last update:')) + ' ' + formatdate(time.mktime(t.timetuple()))

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list