community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1755617 - in /comdev/helpwanted.apache.org/site: admin/index.html js/hw.js
Date Tue, 09 Aug 2016 15:18:20 GMT
Author: humbedooh
Date: Tue Aug  9 15:18:20 2016
New Revision: 1755617

URL: http://svn.apache.org/viewvc?rev=1755617&view=rev
Log:
fixups:
- remove old tags
- move the 'mark as done' link to its own cell

Modified:
    comdev/helpwanted.apache.org/site/admin/index.html
    comdev/helpwanted.apache.org/site/js/hw.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=1755617&r1=1755616&r2=1755617&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/index.html (original)
+++ comdev/helpwanted.apache.org/site/admin/index.html Tue Aug  9 15:18:20 2016
@@ -52,9 +52,8 @@
         <b>Contributors guide URL: </b> <input type="text" name="curl"/>
(optional guide on how to contribute)<br/>
         <b>Collaborative?: </b> <input type="checkbox" name="collaboration"
value="yes"/><br/>
         <h4>Tags:</h4>
-        <b style='color: #37B;'>No tags: </b> <input type="radio" name="tag"
value=""/>bla bla<br/>
-        <b style='color: #37B;'>HackIllinois?: </b> <input type="radio" name="tag"
value="hackillinois"/>Check this box for HackIllinois tasks<br/>
-        <b style='color: #37B;'>GSoC 2016?: </b> <input type="radio" name="tag"
value="gsoc"/>Check this box for GSoC tasks<br/><br/><br/>
+        <b style='color: #37B;'>No tags: </b> <input type="radio" name="tag"
value=""/>Select this for no specific tags<br/>
+        <!--<b style='color: #37B;'>GSoC 2016?: </b> <input type="radio"
name="tag" value="gsoc"/>Check this box for GSoC tasks<br/><br/><br/>-->
         <input type="submit" value="Save task"/>
     </form>
 </div>

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1755617&r1=1755616&r2=1755617&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Tue Aug  9 15:18:20 2016
@@ -493,12 +493,17 @@ function displayItems(json, state) {
     obj.innerHTML = "<p id='hwrtable'>Found " + numItems + " item" + (numItems != 1
? "s" : "") + " you might be interested in:</p>"
     var colors = genColors(numItems+2)
     
+    var admintab = ""
+    if (state.admin) {
+        admintab = "<th>Actions</th>"
+    }
     var tbl = "<table style='text-align: left; width: 100%;'>" +
     "<tr style='cursor: pointer' title='Click on a column to sort'><th>&nbsp;</th><th
onclick='displayItems(null, \"project\");'>Project</th>" +
     "<th onclick='displayItems(null, \"title\");'>Title</th>" +
     "<th onclick='displayItems(null, \"languages\");'>Languages</th>" +
     "<th onclick='displayItems(null, \"difficulty\");'>Difficulty</th>" +
-    "<th onclick='displayItems(null, \"created\");'>Created</th></tr>"
+    "<th onclick='displayItems(null, \"created\");'>Created</th>" +
+    admintab + "</tr>"
     for (var i in json) {
         var item = json[i]
         if (item.closed) {
@@ -516,13 +521,13 @@ function displayItems(json, state) {
         // admin stuff
         var add = ""
         if (state.admin) {
-            add = " &nbsp; <a href='/admin/close.lua?id=" + item.request_id + "'>Mark
as done</a>"
+            add = " <td><a href='/admin/close.lua?id=" + item.request_id + "'>Mark
as done</a></td>"
         }
         item.description = item.description.replace(/\n/g, "<br/>").replace(hw_weburl,
function(a) { return "<a href='"+a+"'>"+a+"</a>"})
         tbl += "<tr style='cursor: pointer;' onclick=\"sw('details_" + i + "');\"><td
width='68'><div class='itemNumber-yellow'>" + z + "</div><img title='" +
item.type + "' style='float: left; width: 24px; height: 24px;' src='https://helpwanted.apache.org/images/icon_"
+ ptype + ".png'/></td>" +
         "<td>" + item.project + "</td>"+
         "<td style='text-align: left;'>" + item.title + "</td>" +
-        "<td>" + lingos + "</td><td title='" + diff_explanation[parseInt(item.difficulty)]
+ "' style='text-align: left;'><img style='width: 20px; height: 20px; vertical-align:
middle;' src='https://helpwanted.apache.org/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 style='width: 20px; height: 20px; vertical-align:
middle;' src='https://helpwanted.apache.org/images/level_" + (parseInt(item.difficulty)+1)
+ ".png'/> " + diff[item.difficulty] + "</td><td>" + cdate + "</td>"
+ add + "</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>"
         



Mime
View raw message