community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1731364 - in /comdev/helpwanted.apache.org/site: css/hwsplash.css js/hw.js
Date Sat, 20 Feb 2016 10:25:08 GMT
Author: humbedooh
Date: Sat Feb 20 10:25:08 2016
New Revision: 1731364

URL: http://svn.apache.org/viewvc?rev=1731364&view=rev
Log:
dash of coloring for the task page

Modified:
    comdev/helpwanted.apache.org/site/css/hwsplash.css
    comdev/helpwanted.apache.org/site/js/hw.js

Modified: comdev/helpwanted.apache.org/site/css/hwsplash.css
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/css/hwsplash.css?rev=1731364&r1=1731363&r2=1731364&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/css/hwsplash.css (original)
+++ comdev/helpwanted.apache.org/site/css/hwsplash.css Sat Feb 20 10:25:08 2016
@@ -11,6 +11,11 @@ body a {
     color: #FFF;
 }
 
+div a {
+    color: #111;
+    font-weight: 600;
+}
+
 .option {
     width: 640px !important;
     margin: 6px auto;

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1731364&r1=1731363&r2=1731364&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Sat Feb 20 10:25:08 2016
@@ -550,6 +550,7 @@ function fetchItemsAdmin() {
 }
 
 function renderItem(json, state) {
+    var p = pastels[parseInt(Math.random()*pastels.length)]
     var obj = document.getElementById('item')
     var cdate = new Date(json.created*1000).toDateString()
     var rid = json.request_id.substring(0,8)
@@ -563,7 +564,8 @@ function renderItem(json, state) {
     json.description = json.description.replace(/\n/g, "<br/>").replace(hw_weburl,
function(a) { return "<a href='"+a+"'>"+a+"</a>"})
     obj.innerHTML = "<h2>Task #" + state.substring(0,8) + ": " + json.title + "</h2>"
     var mlink = "mailto:dev@" + json.project + ".apache.org?subject=" + escape("Help with
task: " + json.title) + "&body=" + escape("I would like to help out with the task listed
at https://helpwanted.apache.org/task.html?" + rid + "\n\n")
-    obj.innerHTML += "<div id='pickerparent' style='padding:12px;'><p style='text-align:
left;'><b>Project: </b> " + json.project + "<br/>" +
+    var rgba = "rgba(" + p.r + "," + p.g + "," + p.b + ", 1)"
+    obj.innerHTML += "<div id='pickerparent' style='background: " + rgba + "; padding:12px;'><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]
+ " - " + diff_explanation[parseInt(json.difficulty)] + "<br/>" +



Mime
View raw message