You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2016/02/07 17:38:15 UTC

svn commit: r1728987 - in /comdev/helpwanted.apache.org/site: admin/index.html js/hw.js widget.js

Author: humbedooh
Date: Sun Feb  7 16:38:15 2016
New Revision: 1728987

URL: http://svn.apache.org/viewvc?rev=1728987&view=rev
Log:
Add some descriptions of the various difficulty levels.

Modified:
    comdev/helpwanted.apache.org/site/admin/index.html
    comdev/helpwanted.apache.org/site/js/hw.js
    comdev/helpwanted.apache.org/site/widget.js

Modified: comdev/helpwanted.apache.org/site/admin/index.html
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/index.html?rev=1728987&r1=1728986&r2=1728987&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/index.html (original)
+++ comdev/helpwanted.apache.org/site/admin/index.html Sun Feb  7 16:38:15 2016
@@ -34,11 +34,11 @@
             <br/>
         <b>Difficulty:</b>
             <select name="difficulty">
-                <option value="0">Beginner</option>
-                <option value="1">Journeyman</option>
-                <option value="2">Intermediate</option>
-                <option value="3">Advanced</option>
-                <option value="4">Expert</option>
+                <option value="0">Beginner - an easy task that anyone can get started on</option>
+                <option value="1">Journeyman - some knowledge of the project, but still an easy task</option>
+                <option value="2">Intermediate - a good knowledge of the project</option>
+                <option value="3">Advanced - a good knowledge of the project and good technical skills</option>
+                <option value="4">Expert - intimate knowledge of the project and excellent tech skills</option>
             </select>
             <br/>
         <b>Description:</b>

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1728987&r1=1728986&r2=1728987&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Sun Feb  7 16:38:15 2016
@@ -27,6 +27,14 @@ var types_long = {
     translation: 'Translation'
 }
 
+var diff_explanation = [
+    'This is an easy task that anyone can get started on',
+    'This requires a bit of knowledge of the project, but otherwise is an easy task',
+    'This requires a good knowledge of the project',
+    'This requires a good knowledge of the project and good technical skills',
+    'This requires intimate knowledge of the project and excellent technical skills'
+]
+
 var spoken_langs = ['english', 'french', 'german', 'spanish', 'russian', 'italian', 'japanese', 'chinese']
 var website_langs = ['css','javascript','html']
 var projects = ['all projects']
@@ -282,7 +290,7 @@ function displayItems(json, state) {
         tbl += "<tr style='cursor: pointer;' onclick=\"sw('details_" + i + "');\"><td><div class='itemNumber-yellow'>" + z + "</div><img title='" + item.type + "' style='float: left;' src='/images/icon_" + ptype + ".png'/></td>" +
         "<td>" + item.project + "</td>"+
         "<td style='text-align: left;'>" + item.title + "</td>" +
-        "<td>" + lingos + "</td><td style='text-align: left;'><img src='/images/level_" + (parseInt(item.difficulty)+1) + ".png'/> " + diff[item.difficulty] + add + "</td><td>" + cdate + "</td></tr>"
+        "<td>" + lingos + "</td><td title='" + diff_explanation[parseInt(item.difficulty)] + "' style='text-align: left;'><img src='/images/level_" + (parseInt(item.difficulty)+1) + ".png'/> " + diff[item.difficulty] + add + "</td><td>" + cdate + "</td></tr>"
         
         tbl += "<tr style='display:none;' id='details_" + i + "'><td colspan='6'><b>Project:</b> " + item.project + "<br/><b>Requested by:</b> " + item.author + "@apache.org<br/><b>Created:</b> " + cdate + "<br/><b>Description:</b> <blockquote>" + item.description + "</blockquote><b>Further information: </b> <a href='" + item.url + "'>" + item.url + "</a><br/><input type='button' onclick='location.href=\"https://helpwanted.apache.org/task.html?" + item.request_id +"\";' value='I am interested in this'/></td></tr>"
         
@@ -316,7 +324,7 @@ function renderItem(json, state) {
     obj.innerHTML += "<p style='text-align: left;'><b>Project: </b> " + json.project + "<br/>" +
         "<b>Created by:</b> " + json.author + "@apache.org<br/>" +
         "<b>Task added: </b>" + cdate + "<br/>" +
-        "<b>Difficulty: </b> <img style='width: 16px; height: 16px; vertical-align: middle;' src='/images/level_" + (parseInt(json.difficulty)+1) + ".png'/> " + diff[json.difficulty] + "<br/>" +
+        "<b>Difficulty: </b> <img style='width: 16px; height: 16px; vertical-align: middle;' src='/images/level_" + (parseInt(json.difficulty)+1) + ".png'/> " + diff[json.difficulty] + " - " + diff_explanation[parseInt(json.difficulty)] + "<br/>" +
         "<b>Task type:</b> " + types_long[json.type] + "<br/>" +
         "<b>Additional information:</b> <a href='" + json.url + "'>" + json.url + "</a><br/>" +
         ((json.estimate && json.estimate.length > 0) ? "<b>Estimated time to complete:</b> " + json.estimate : "") +

Modified: comdev/helpwanted.apache.org/site/widget.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/widget.js?rev=1728987&r1=1728986&r2=1728987&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/widget.js (original)
+++ comdev/helpwanted.apache.org/site/widget.js Sun Feb  7 16:38:15 2016
@@ -20,6 +20,14 @@ var widgettitle = null
 var hw_json = null
 var maxitems = 8
 
+var diff_explanation = [
+    'This is an easy task that anyone can get started on',
+    'This requires a bit of knowledge of the project, but otherwise is an easy task',
+    'This requires a good knowledge of the project',
+    'This requires a good knowledge of the project and good technical skills',
+    'This requires intimate knowledge of the project and excellent technical skills'
+]
+
 function getAsyncJSON(theUrl, xstate, callback) {
 	var xmlHttp = null;
 	if (window.XMLHttpRequest) {
@@ -107,7 +115,7 @@ function displayItemsWidget(json, state)
         
         tbl += "<tr style='cursor: pointer; ' onclick=\"sw('hw_details_" + i + "');\"><td style='text-align: left;'><div class='itemNumber-widget'>" + z + "</div><img title='" + item.type + "' style='width:16px; height: 16px;' float: left;' src='/images/icon_" + ptype + ".png'/>" +
         item.title + "</td>" +
-        "<td>" + lingos + "</td><td style='text-align: left;'><img style='width:16px; height: 16px;' src='/images/level_" + (parseInt(item.difficulty)+1) + ".png'/> " + diff[item.difficulty] + add + "</td><td>" + cdate + "</td></tr>"
+        "<td>" + lingos + "</td><td style='text-align: left;' title='" + diff_explanation[parseInt(item.difficulty)] + "'><img style='width:16px; height: 16px;' src='/images/level_" + (parseInt(item.difficulty)+1) + ".png'/> " + diff[item.difficulty] + add + "</td><td>" + cdate + "</td></tr>"
         var fi = ""
         if (item.url && item.url.length > 10) {
             fi = "<b>Further information: </b> <a href='" + item.url + "'>" + item.url + "</a><br/>"