cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r880257 - in /websites/staging/cloudstack/trunk/content: ./ index.html
Date Sat, 28 Sep 2013 17:05:03 GMT
Author: buildbot
Date: Sat Sep 28 17:05:03 2013
New Revision: 880257

Log:
Staging update by buildbot for cloudstack

Modified:
    websites/staging/cloudstack/trunk/content/   (props changed)
    websites/staging/cloudstack/trunk/content/index.html

Propchange: websites/staging/cloudstack/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Sep 28 17:05:03 2013
@@ -1 +1 @@
-1527204
+1527209

Modified: websites/staging/cloudstack/trunk/content/index.html
==============================================================================
--- websites/staging/cloudstack/trunk/content/index.html (original)
+++ websites/staging/cloudstack/trunk/content/index.html Sat Sep 28 17:05:03 2013
@@ -214,17 +214,21 @@ Looking to other versions of Apache Clou
 
 <div class="panel-heading">
 
-CloudStack Collaboration Conference
+CloudStack Events
 
 </div>
 
-<div class="panel-body">
+<div class="panel-body" id="events">
+
+<h4>2013 CloudStack Collaboration Conference EU</h4>
 
 <p>
 The Apache CloudStack community will be coming together for our third collaboration conference
in Amsterdam on November 20th through 22nd. If you're a CloudStack user, developer or integrator,
this is the conference for you!
 </p>
 
-<a href="http://cloudstackcollab.org/"><button type="button" class="btn btn-info">Learn
More</button></a>
+<p>Learn more about the conference on <a href="http://cloudstackcollab.org/">cloudstackcollab.org</a>.</p>
+
+<h4>Upcoming CloudStack Related Events</h4>
 
 </div>
 
@@ -289,6 +293,38 @@ function newFeed(id, file) {
 
 <script>
 newFeed("feed", "https://blogs.apache.org/cloudstack/feed/entries/atom?cat=%2FAnnouncements");
+</script>
+
+<script>
+var maxEvents = 3; // if 0 then there will be no limit
+
+/**
+ * This function appends rss feed items to divs with the same slug
+ * Name is the title of the feed, when slugged i use it as a div id
+ * File is the rss feed
+ */
+function newEventList(id, file) {
+ $.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D%22"+encodeURIComponent(file)+"%22&format=json&callback=?",
function(d) {
+  var count = 0;
+  //grab ever rss item from the json result request
+  $(d.query.results.feed.entry).each(function() {
+    //if set up to be infinite or the limit is not reached, keep grabbing items
+    if(maxEvents == 0 || maxEvents>count){
+     var title = this.title;
+     var link = this.link.href;
+     // Format however you want, I only went for link and title
+     var anItem = "<p><a href='"+link+"' target='_blank'>"+title+"</a></p>";
+     //append to the div
+     $("#"+id).append(anItem);
+     count++;
+    }
+   });
+   $("#events").append("<p><small>For more events, take a look at the <a href='http://lanyrd.com/topics/apache-cloudstack/'
target='_blank'>Apache CloudStack topic page</a> on Lanyrd.</small></p>");
+ });
+};
+
+newEventList("events", "http://lanyrd.com/topics/apache-cloudstack/feed/");
+
 </script> 
 
             <footer>



Mime
View raw message