[gnomeweb-wml] [wgo] Update Friends of GNOME ruler with a thankful message



commit 01c9395abbcd52f9e728cf3d2d738322d4c4ff40
Author: Lucas Rocha <lucasr litl com>
Date:   Fri Apr 9 16:38:17 2010 +0100

    [wgo] Update Friends of GNOME ruler with a thankful message

 www.gnome.org/friends/index.wml               |   14 ++-----
 www.gnome.org/friends/ruler/Makefile.am       |    1 +
 www.gnome.org/friends/ruler/ruler-done-bg.png |  Bin 0 -> 3278 bytes
 www.gnome.org/friends/ruler/ruler.js          |    2 +-
 www.gnome.org/friends/ruler/update-ruler      |   51 ++++++++++++++++++++++++-
 5 files changed, 56 insertions(+), 12 deletions(-)
---
diff --git a/www.gnome.org/friends/index.wml b/www.gnome.org/friends/index.wml
index 6b5f093..4f2071d 100644
--- a/www.gnome.org/friends/index.wml
+++ b/www.gnome.org/friends/index.wml
@@ -57,20 +57,14 @@ in 2008 we were able to:
 <p>The GNOME desktop is free and accessible software available in many languages. GNOME is the software of choice for programs like One Laptop Per Child, governments, and mobile phone applications.
 </p>
 
-<h2>Help us to hire a Sysadmin for GNOME!</h2>
-<p>Keeping track of the routine day-to-day system administration tasks is
-neither glamorous nor a lot of fun, but it's essential to keeping the
-day-to-day work of thousands of GNOME contributors going. For this reason, the
-foundation is hoping to hire a part-time sysadmin to handle the coordination
-role on an ongoing basis. This is dependent on obtaining sufficient funding.
-You learn more about our plans for a system administrator on the
+<h2>Thank you!</h2>
+<p>Thanks to our <b>amazing community</b>, the GNOME Foundation raised
+<b>$57,000</b> and is now able to hire a <b>Sysadmin for GNOME</b>!
+You learn more about our plans for the system administrator on the
 <a href="http://live.gnome.org/Sysadmin/AdvisoryMeeting/JobDescription";>job
 description page</a>.
 </p>
 
-<script type="text/javascript" src="/friends/ruler/ruler.js"></script>
-<link media="all" type="text/css" rel="stylesheet" href="css/ruler.css"/>
-
 <h2>Donate to the GNOME Foundation</h2>
 
 <form id="aidform" method="post" action="step2.php">
diff --git a/www.gnome.org/friends/ruler/Makefile.am b/www.gnome.org/friends/ruler/Makefile.am
index 431d7af..e4846f2 100644
--- a/www.gnome.org/friends/ruler/Makefile.am
+++ b/www.gnome.org/friends/ruler/Makefile.am
@@ -6,6 +6,7 @@ include $(top_srcdir)/rules.common
 
 page_DATA = \
     ruler-bg.jpg \
+    ruler-done-bg.jpg \
     ruler.js
 
 EXTRA_DIST=$(page_DATA)
diff --git a/www.gnome.org/friends/ruler/ruler-done-bg.png b/www.gnome.org/friends/ruler/ruler-done-bg.png
new file mode 100644
index 0000000..40ec06e
Binary files /dev/null and b/www.gnome.org/friends/ruler/ruler-done-bg.png differ
diff --git a/www.gnome.org/friends/ruler/ruler.js b/www.gnome.org/friends/ruler/ruler.js
index 7af2e54..cda5e9a 100644
--- a/www.gnome.org/friends/ruler/ruler.js
+++ b/www.gnome.org/friends/ruler/ruler.js
@@ -1 +1 @@
-document.write(' <style type="text/css">     #gnome-fog-ruler {        background: #237100 url(http://www.gnome.org/friends/ruler/ruler-bg.jpg) center no-repeat;        padding: 16px 0px 16px 0px;        color: #fff;        font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, sans-serif;        font-size: 12px;        z-index: 200;        float: left;        width: 100%;        position: relative;    }    #gnome-fog-ruler * {        margin: 0;        padding: 0;    }    #gnome-fog-ruler .fog-center {        width: 960px;        margin: 0 auto;        text-align: left;    }    #gnome-fog-ruler a {        color: #fff;    }    #gnome-fog-ruler .fog-intro {        width: 300px;        float: left;        margin-right: 12px;    }    #gnome-fog-ruler .fog-intro h4 {        margin-bottom: 6px;        color: #fff;        font-size: 13px;        text-shadow: 0 1px 2px #346704;    }    #gnome-fog-ruler .fog-ruler {        background: #fff;        overflow: hidd
 en;        -moz-border-radius: 4px;        -webkit-border-radius: 4px;        padding: 2px;        -moz-box-shadow: 0 1px 2px #346704;        -webkit-box-shadow: 0 1px 2px #346704;    }    #gnome-fog-ruler .fog-ruler .fog-bar {        display: block;        float: left;        font-size: 5px;        height: 14px;        line-height: 12px;    }    #gnome-fog-ruler .green {        background: #66bb14;    }    #gnome-fog-ruler .orange {        background: #f57900;    }    #gnome-fog-ruler .blue {        background: #729fcf;    }    #gnome-fog-ruler .yellow {        background: #fce94f;    }    #gnome-fog-ruler .white {        background: #fff;    }    #gnome-fog-ruler .green {        background: #8ae234;    }    #gnome-fog-ruler .purple {        background: #9a32cd;    }    #gnome-fog-ruler .fog-description {        margin-top: 8px;        overflow: hidden;        text-align: center;    }    #gnome-fog-ruler .fog-description .fog-item {        margin-right: 12px;        display
 : block;        float: left;        overflow: hidden;        text-align: left;    }    #gnome-fog-ruler .fog-description .fog-item .fog-box {        display: block;        float: left;        width: 12px;        height: 12px;        border: 1px solid #fff;        margin: 0 6px 6px 0;        -moz-border-radius: 3px;        -webkit-border-radius: 3px;        border-radius: 3px;        -moz-box-shadow: 0 1px 2px #346704;        -webkit-box-shadow: 0 1px 2px #346704;    }    #gnome-fog-ruler .fog-description .fog-item .fog-details {        font-style: italic;        display: block;        margin-left: 20px;    }    #gnome-fog-ruler .fog-donate {        float: right;        margin-top: 11px;    }    #gnome-fog-ruler .fog-donate a {        display: block;        padding: 6px 8px;        background: #fff;        color: #333;        font-weight: bold;        text-decoration: none;        font-size: 14px;        -moz-box-shadow: 0 1px 2px #346704, inset 0 -3px 10px #ccc;        -webk
 it-box-shadow: 0 1px 2px #346704, inset 0 -3px 10px #ccc;        -moz-border-radius: 4px;        -webkit-border-radius: 4px;    }    #gnome-fog-ruler .fog-donate a:hover {        color: #204a87;        text-decoration: underline;    }</style><div id="gnome-fog-ruler">    <div class="fog-center">        <div class="fog-intro">            <h4>The GNOME Project needs your help!</h4>            <p>GNOME Foundation wants to hire a sysadmin so that GNOME developers can focus on GNOME.</p>        </div>        <div class="fog-data">            <div class="fog-ruler"><span style="width: 17.54%;" class="fog-bar orange">&nbsp;</span><span style="width: 8.77%;" class="fog-bar blue">&nbsp;</span><span style="width: 8.77%;" class="fog-bar yellow">&nbsp;</span><span style="width: 8.77%;" class="fog-bar purple">&nbsp;</span><span style="width: 55.94%;" class="fog-bar green">&nbsp;</span>            </div>            <div class="fog-donate">                <a href="http://www.gnome.org/frie
 nds/">Donate now!</a>            </div>            <div class="fog-description"><div class="fog-item"><span class="fog-box orange">&nbsp;</span><strong>Canonical</strong><span class="fog-details">$10,000</span></div><div class="fog-item"><span class="fog-box blue">&nbsp;</span><strong>Google</strong><span class="fog-details">$5,000</span></div><div class="fog-item"><span class="fog-box yellow">&nbsp;</span><strong>Nokia</strong><span class="fog-details">$5,000</span></div><div class="fog-item"><span class="fog-box purple">&nbsp;</span><strong>Collabora</strong><span class="fog-details">$5,000</span></div><div class="fog-item"><span class="fog-box green">&nbsp;</span><strong>Friends of GNOME</strong><span class="fog-details">$31,886. $114 to go!</span></div>            </div>        </div>        <div style="clear: both;"></div>    </div></div>')
+document.write('<style type="text/css">     #gnome-fog-ruler {        background: #237100 url(http://www.gnome.org/friends/ruler/ruler-bg.jpg) center no-repeat;        /*background: #63B412;*/        padding: 0px;        color: #fff;        font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, sans-serif;        font-size: 13px;        text-shadow: 0 1px 2px #346704;        z-index: 200;        float: left;        width: 100%;        position: relative;    }    #gnome-fog-ruler .fog-center {        background: url(http://www.gnome.org/friends/ruler/ruler-done-bg.jpg) no-repeat scroll right bottom;        width: 920px;        margin: 0 auto;        min-height: 40px;        text-align: left;    }    .gnome-fog-ruler-text {        padding-top: 13px;        padding-bottom: 13px;        margin: 0px;        line-height: 20px;    }</style><div id="gnome-fog-ruler">    <div class="fog-center">        <p class="gnome-fog-ruler-text">        Thanks to our <stron
 g>amazing community</strong>,        the GNOME Foundation raised <strong>$57,000</strong> and is        now able<br/>to hire a <b>Sysadmin for GNOME</b>!        </p>    </div></div>')
diff --git a/www.gnome.org/friends/ruler/update-ruler b/www.gnome.org/friends/ruler/update-ruler
index 0a85a2e..9b6ef4d 100755
--- a/www.gnome.org/friends/ruler/update-ruler
+++ b/www.gnome.org/friends/ruler/update-ruler
@@ -11,6 +11,8 @@
 #                                                            #
 ##############################################################
 
+import sys
+
 def split_thousands(s):
     if s.rfind('.') > 0:
         rhs=s[s.rfind('.')+1:]
@@ -44,7 +46,7 @@ DONORS = [
 
 { 'name': 'Friends of GNOME',
   'color': 'green',
-  'donation': 31886.00,
+  'donation': 32000.00,
   'show-still-needed': 1 }]
 
 TOTAL_DONATIONS = 0
@@ -54,11 +56,58 @@ for donor in DONORS:
 
 STILL_NEED = TARGET_AMOUNT - TOTAL_DONATIONS
 
+DONE = STILL_NEED <= 0
+
 ##############################################################
 # Only change the code from now on if you want to change the #
 # generated CSS and HTML                                     #
 ##############################################################
 
+CSS_DONE ='\
+<style type="text/css"> \
+    #gnome-fog-ruler {\
+        background: #237100 url(http://www.gnome.org/friends/ruler/ruler-bg.jpg) center no-repeat;\
+        /*background: #63B412;*/\
+        padding: 0px;\
+        color: #fff;\
+        font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, sans-serif;\
+        font-size: 13px;\
+        text-shadow: 0 1px 2px #346704;\
+        z-index: 200;\
+        float: left;\
+        width: 100%;\
+        position: relative;\
+    }\
+    #gnome-fog-ruler .fog-center {\
+        background: url(http://www.gnome.org/friends/ruler/ruler-done-bg.jpg) no-repeat scroll right bottom;\
+        width: 920px;\
+        margin: 0 auto;\
+        min-height: 40px;\
+        text-align: left;\
+    }\
+    .gnome-fog-ruler-text {\
+        padding-top: 13px;\
+        padding-bottom: 13px;\
+        margin: 0px;\
+        line-height: 20px;\
+    }\
+</style>'
+
+HTML_DONE = '\
+<div id="gnome-fog-ruler">\
+    <div class="fog-center">\
+        <p class="gnome-fog-ruler-text">\
+        Thanks to our <strong>amazing community</strong>,\
+        the GNOME Foundation raised <strong>$57,000</strong> and is\
+        now able<br/>to hire a <b>Sysadmin for GNOME</b>!\
+        </p>\
+    </div>\
+</div>'
+
+if DONE:
+    print 'document.write(\'%s\')' % (CSS_DONE + HTML_DONE)
+    sys.exit()
+
 CSS = ' \
 <style type="text/css"> \
     #gnome-fog-ruler {\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]