Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75377 - in website/public_html/beta: site-tools/boost_site site-tools/state site-tools/templates users/history
From: dnljms_at_[hidden]
Date: 2011-11-07 08:21:52


Author: danieljames
Date: 2011-11-07 08:21:51 EST (Mon, 07 Nov 2011)
New Revision: 75377
URL: http://svn.boost.org/trac/boost/changeset/75377

Log:
Website: Tweak the beta release notes.
Text files modified:
   website/public_html/beta/site-tools/boost_site/pages.py | 24 +++++++++++++++++++-----
   website/public_html/beta/site-tools/state/feed-pages.txt | 2 +-
   website/public_html/beta/site-tools/templates/entry-template.html | 4 ++--
   website/public_html/beta/users/history/version_1_48_0.html | 6 +++---
   4 files changed, 25 insertions(+), 11 deletions(-)

Modified: website/public_html/beta/site-tools/boost_site/pages.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/pages.py (original)
+++ website/public_html/beta/site-tools/boost_site/pages.py 2011-11-07 08:21:51 EST (Mon, 07 Nov 2011)
@@ -152,9 +152,9 @@
         self.page_state = attrs.get('page_state', None)
         self.flags = attrs.get('flags', '')
         if self.flags:
- self.flags = set(self.flags.split(','))
+ self.flags = set(self.flags.split(','))
         else:
- self.flags = set()
+ self.flags = set()
         self.dir_location = attrs.get('dir_location', None)
         self.location = attrs.get('location', None)
         self.id = attrs.get('id', None)
@@ -231,6 +231,8 @@
     def download_table(self):
         if(not self.download_item):
             return ''
+ if self.type == 'release' and ('beta' not in self.flags and 'released' not in self.flags):
+ return ''
     
         match = re.match('.*/boost/(\d+)\.(\d+)\.(\d+)/', self.download_item)
         if(match):
@@ -260,7 +262,10 @@
             
             output = ''
             output = output + '<table class="download-table">'
- output = output + '<caption>Downloads</caption>'
+ if 'beta' in self.flags:
+ output = output + '<caption>Beta Downloads</caption>'
+ else:
+ output = output + '<caption>Downloads</caption>'
             output = output + '<tr><th scope="col">Platform</th><th scope="col">File</th></tr>'
     
             for platform in ['unix', 'windows']:
@@ -282,9 +287,18 @@
             # If the link didn't match the normal version number pattern
             # then just use the old fashioned link to sourceforge. */
     
- return '<p><span class="news-download"><a href="' + \
+ output = '<p><span class="news-download"><a href="' + \
                 boost_site.util.htmlencode(self.download_item) + \
- '">Download this release.</a></span></p>';
+ '">'
+
+ if 'beta' in self.flags:
+ output = output + 'Download this beta release.'
+ else:
+ output = output + 'Download this release.'
+
+ output = output + '</a></span></p>'
+
+ return output
 
     def is_published(self, flags):
         if self.page_state == 'new':

Modified: website/public_html/beta/site-tools/state/feed-pages.txt
==============================================================================
--- website/public_html/beta/site-tools/state/feed-pages.txt (original)
+++ website/public_html/beta/site-tools/state/feed-pages.txt 2011-11-07 08:21:51 EST (Mon, 07 Nov 2011)
@@ -1728,7 +1728,7 @@
 -id
 "version_1_48_0
 -last_modified
-.1320671462.81
+.1320672027.44
 -location
 "users/history/version_1_48_0.html
 -page_state

Modified: website/public_html/beta/site-tools/templates/entry-template.html
==============================================================================
--- website/public_html/beta/site-tools/templates/entry-template.html (original)
+++ website/public_html/beta/site-tools/templates/entry-template.html 2011-11-07 08:21:51 EST (Mon, 07 Nov 2011)
@@ -2,8 +2,8 @@
 full_title_xml = page.title_xml
 
 if page.type == 'release':
- if ('beta' in page.flags): full_title_xml = 'Beta release: ' + full_title_xml
- elif ('released' not in page.flags): full_title_xml = 'In Progress: ' + full_title_xml
+ if ('beta' in page.flags): full_title_xml = full_title_xml + ' beta release'
+ elif ('released' not in page.flags): full_title_xml = full_title_xml + ' work in progress'
 
 }$<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Modified: website/public_html/beta/users/history/version_1_48_0.html
==============================================================================
--- website/public_html/beta/users/history/version_1_48_0.html (original)
+++ website/public_html/beta/users/history/version_1_48_0.html 2011-11-07 08:21:51 EST (Mon, 07 Nov 2011)
@@ -3,7 +3,7 @@
 
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
- <title>Beta release: Version 1.48.0</title>
+ <title>Version 1.48.0 beta release</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="icon" href="/favicon.ico" type="image/ico" />
   <link rel="stylesheet" type="text/css" href="/style-v2/section-boost.css" />
@@ -32,7 +32,7 @@
         <div class="section" id="intro">
           <div class="section-0">
             <div class="section-title">
- <h1>Beta release: Version 1.48.0</h1>
+ <h1>Version 1.48.0 beta release</h1>
             </div>
 
             <div class="section-body">
@@ -42,7 +42,7 @@
               <p><span class=
               "news-date">In Progress</span></p>
 
- <p><span class="news-download">Download this release.</span></p>
+ <p><span class="news-download">Download this beta release.</span></p>
               <div class="news-description">
                 <div class="description">
   


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk