[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [websites/marble-kde-org] /: Add GCI tasks
From:       Dennis_Nienhüser <nienhues () fzi ! de>
Date:       2013-11-17 15:29:00
Message-ID: E1Vi4HU-0007eu-Ch () scm ! kde ! org
[Download RAW message or body]

Git commit a7468d7fc4e47df7a8fac0c9562ea5ef5fe96230 by Dennis Nienhüser.
Committed on 17/11/2013 at 15:21.
Pushed by nienhueser into branch 'master'.

Add GCI tasks

BUG: 326312

M  +66   -78   dashboard.php

http://commits.kde.org/websites/marble-kde-org/a7468d7fc4e47df7a8fac0c9562ea5ef5fe96230


diff --git a/dashboard.php b/dashboard.php
index 6c00b27..c2e440d 100644
--- a/dashboard.php
+++ b/dashboard.php
@@ -9,7 +9,7 @@
   <li><a href="#contributors" data-toggle="tab"><i class="icon-user"></i> Current \
Contributors</a></li>  <li><a href="#contributions" data-toggle="tab"><i \
class="icon-time"></i> Just Done</a></li>  <li><a href="#review-requests" \
                data-toggle="tab"><i class="icon-eye-open"></i> Under Review</a></li>
-  <li class="active"><a href="#featured-tasks" data-toggle="tab"><i \
class="icon-fire"></i> Featured Tasks</a></li> +  <li class="active"><a \
href="#featured-tasks" data-toggle="tab"><i class="icon-fire"></i> GCI Tasks</a></li> \
<li><a href="#all-tasks" data-toggle="tab"><i class="icon-tasks"></i> All \
Tasks</a></li>  <li><a href="#feature-requests" data-toggle="tab"><i \
class="icon-comment"></i> Feature Requests</a></li>  <li><a href="#bugs" \
data-toggle="tab"><i class="icon-warning-sign"></i> Bugs</a></li> @@ -61,85 +61,19 @@
   Don't know that certain thing to work on yet? Here are some tasks waiting for \
someone to tackle.<br />  You can also enter student programs we participate in as \
mentoring organization: <a href="http://code.google.com/intl/de/soc/">GSoC</a>, <a \
href="http://code.google.com/intl/de/opensource/gci/2012/index.html">Code-in</a> and \
<a href="http://sophia.estec.esa.int/socis2012/">SoCiS</a>. Finally, please poke us \
using one of the <a href="contributors-welcome.php">communication channels</a>, we \
                don't bite <i class="icon-heart"></i>
   -->
-  In preparation for <a href="http://code.google.com/intl/de/soc/">GSoC 2013</a> we \
offer a couple of coding tasks for prospective students to tackle. The tasks will \
introduce you to contributing to Marble development. Please get in touch with the \
                mentor listed below each task if you want to work on one or more of \
                them.
-  </p>
-
-  <div style="min-height:10px;" /></div>
-  
-  <ul class="thumbnails">
-<!--  <li class="span4" style="margin-top:10px;">
-    <span class="badge badge-important pull-left" \
                style="margin-left:6px;margin-top:-10px">GSoC</span>
-    <span class="label label-info pull-right" \
                style="margin-right:6px;margin-top:-10px;">Code</span>
-    <div class="thumbnail">
-    <div class="caption" style="margin-top:10px;">
-    <div style="min-height:140px;">
-
-    <img class="img-rounded" src="img/tasks/info-popup.png" style="margin-bottom: \
                5px;" />
-    <p style="margin-top:6px;">Introduce the ability to automatically adjust the \
popup size to the size of the viewport (map) in the new info popup which is opened \
                when e.g. clicking on a city in the Atlas map.</p>
-    </div>
-    <p><a class="btn btn-primary" \
href="https://bugs.kde.org/show_bug.cgi?id=317839"><i class="icon-globe \
                icon-white"></i> Info Popup Autosize</a></p>
-    <table width="100%">
-      <tr><td>Mentor</td><td><i class="icon-user"></i> Earthwings in <a \
                href="http://webchat.freenode.net/?channels=marble&uio=d4">#marble</a></td></tr>
                
-      <tr><td>Complexity</td><td><span class="badge badge-warning pull-right"><i \
class="icon-star icon-white"></i><i class="icon-star-empty icon-white"></i><i \
                class="icon-star-empty icon-white"></i></span></td></tr>
-    </table>
-    </div>
-    </div>
-  </li>-->
-  <li class="span4" style="margin-top:10px;">
-    <span class="badge badge-important pull-left" \
                style="margin-left:6px;margin-top:-10px">GSoC</span>
-    <span class="label label-info pull-right" \
                style="margin-right:6px;margin-top:-10px;">Code</span>
-    <div class="thumbnail">
-    <div class="caption" style="margin-top:10px;">
-    <div style="min-height:140px;">
-
-    <p style="margin-top:6px;">Marble's KML read/write support is nearly done. \
Implement one of the last missing pieces, write support for <tt>gx:TimeStamp</tt> and \
                <tt>gx:TimeSpan</tt>.</p>
-    </div>
-    <p><a class="btn btn-primary" \
href="https://bugs.kde.org/show_bug.cgi?id=319970"><i class="icon-globe \
                icon-white"></i> KML Google Time Primitives</a></p>
-    <table width="100%">
-      <tr><td>Mentor</td><td><i class="icon-user"></i> Earthwings in <a \
                href="http://webchat.freenode.net/?channels=marble&uio=d4">#marble</a></td></tr>
                
-      <tr><td>Complexity</td><td><span class="badge badge-warning pull-right"><i \
class="icon-star icon-white"></i><i class="icon-star-empty icon-white"></i><i \
                class="icon-star-empty icon-white"></i></span></td></tr>
-    </table>
-    </div>
-    </div>
-  </li>
-  
-  <!--<li class="span4" style="margin-top:10px;">
-    <span class="badge badge-important pull-left" \
                style="margin-left:6px;margin-top:-10px">GSoC</span>
-    <span class="label label-info pull-right" \
                style="margin-right:6px;margin-top:-10px;">Code</span>
-    <div class="thumbnail">
-    <div class="caption" style="margin-top:10px;">
-    <div style="min-height:140px;">
-      <img class="img-rounded" src="img/gallery/historic-map-themes.jpg" />
-      <p style="margin-top:6px;">Non-KDE users of Marble currently lack the \
convenient in-app installation of additional map themes. Implement the missing user \
interface that shows a list of available remote map themes and lets users install \
                them with a single click.</p>
-    </div>
-    <p><a class="btn btn-primary" \
href="https://bugs.kde.org/show_bug.cgi?id=315839"><i class="icon-globe \
                icon-white"></i> Download New Maps </a></p>
-    <table width="100%">
-      <tr><td>Mentor</td><td><i class="icon-user"></i> shentey in <a \
                href="http://webchat.freenode.net/?channels=marble&uio=d4">#marble</a></td></tr>
                
-      <tr><td>Complexity</td><td><span class="badge badge-warning pull-right"><i \
class="icon-star icon-white"></i><i class="icon-star icon-white"></i><i \
                class="icon-star icon-white"></i></span></td></tr>
-    </table>
-    </div>
-    </div>
-  </li>-->
+  <p>
+  Marble participates in <a \
href="http://code.google.com/intl/de/opensource/gci/2012/index.html">Google \
Code-in</a> 2013. Here's a list of current Marble tasks. Please poke us using one of \
the <a href="contributors-welcome.php">communication channels</a> for more details, \
we don't bite <i class="icon-heart"></i>  
-  <!--<li class="span4" style="margin-top:10px;">
-    <span class="badge badge-important pull-left" \
                style="margin-left:6px;margin-top:-10px">GSoC</span>
-    <span class="label label-info pull-right" \
                style="margin-right:6px;margin-top:-10px;">Code</span>
-    <div class="thumbnail">
-    <div class="caption" style="margin-top:10px;">
-    <div style="min-height:140px;">
-      <img class="img-rounded" src="img/gallery/routing-osm.png" />
-      <p style="margin-top:6px;">Tracks and routes loaded from .gpx files are \
currently a bit hard to spot on map themes like OpenStreetMap. Change their styling \
                to be similar (but not identical) to the rendering of active tracks \
                and routes.</p>
-    </div>
-    <p><a class="btn btn-primary" \
href="https://bugs.kde.org/show_bug.cgi?id=311210"><i class="icon-globe \
                icon-white"></i> Track Rendering Improvements</a></p>
-    <table width="100%">
-      <tr><td>Mentor</td><td><i class="icon-user"></i> Earthwings in <a \
                href="http://webchat.freenode.net/?channels=marble&uio=d4">#marble</a></td></tr>
                
-      <tr><td>Complexity</td><td><span class="badge badge-warning pull-right"><i \
class="icon-star icon-white"></i><i class="icon-star-empty icon-white"></i><i \
                class="icon-star-empty icon-white"></i></span></td></tr>
-    </table>
-    </div>
-    </div>
-  </li>-->
-  </ul>
+  </p>
 
+  <table class="table table-striped table-condensed table-hover table-bordered" \
id="table-featured"> +    <tr>
+     <th>Description</th>
+     <th>Status</th>
+     <th>Last Changed</th>
+     <th>Details</th>
+    </tr>
+  </table>
   </div>
 
   <div class="tab-pane fade" id="all-tasks" style="max-height:500px;">
@@ -265,7 +199,61 @@
         row.insertCell(3).appendChild(link);
       }
     });
+    
+    $.getJSON('https://bugs.kde.org/jsonrpc.cgi?method=Bug.search&callback=?&params=[ \
{"product":"marble","severity":"task","status":["NEW","CONFIRMED","UNCONFIRMED","ASSIGNED"]}]',
 +    {},
+    function(bug) {
+      var tableFeatured = document.getElementById('table-featured');
+      for (var i=0;i<bug.result.bugs.length;i++)
+      {
+        var row = tableFeatured.insertRow(tableFeatured.rows.length);
+        var status = "Open";
+        var statusIcon = "icon-hand-right";
+        var avatar = "";
+        if ($.inArray("google-code-in", bug.result.bugs[i].keywords)<0)
+        {
+          continue;
+        }
+        if (bug.result.bugs[i].status === 'ASSIGNED') {
+          row.setAttribute('class', 'success');
+          status = "Claimed";
+          statusIcon = "icon-wrench";
+          avatar='<img src="' + get_gravatar(bug.result.bugs[i].assigned_to, 20) + \
'" width="20" height="20" alt="Assigned to ' + bug.result.bugs[i].assigned_to + '" \
class="pull-right" />'; +        } else {
+          row.setAttribute('class', 'warning');
+        }
 
+        const one_day=1000*60*60*24;
+        var lastChange = new Date(bug.result.bugs[i].last_change_time);
+        var age = new Date().getTime() - lastChange.getTime();
+        var ageDays = age / one_day;
+        if (ageDays > 365) {
+          row.setAttribute('class', 'error');
+        }
+
+        row.insertCell(0).innerHTML = bug.result.bugs[i].summary;
+        var icon = document.createElement("i");
+        icon.setAttribute('class', statusIcon);
+        icon.appendChild(document.createElement('span'));
+        row.insertCell(1).innerHTML = icon.outerHTML + " " + status + avatar;
+
+        // Last changed
+        row.insertCell(2).innerHTML = fuzzyDate(lastChange);
+
+        // Bugzilla link
+        var button = document.createElement("button");
+        button.setAttribute("class", 'btn btn-mini');
+
+        var link = document.createElement("a");
+        link.href = 'https://bugs.kde.org/' + bug.result.bugs[i].id;
+        button.innerHTML = '#' + bug.result.bugs[i].id;
+
+        link.appendChild(button);
+        row.insertCell(3).appendChild(link);
+      }
+    });
+
+    
     function sortByDate(a, b){
       const dateA = new Date(a.last_change_time);
       const dateB = new Date(b.last_change_time);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic