community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1729009 - /comdev/helpwanted.apache.org/site/js/hw.js
Date Sun, 07 Feb 2016 18:47:54 GMT
Author: humbedooh
Date: Sun Feb  7 18:47:53 2016
New Revision: 1729009

URL: http://svn.apache.org/viewvc?rev=1729009&view=rev
Log:
minor nits

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

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1729009&r1=1729008&r2=1729009&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Sun Feb  7 18:47:53 2016
@@ -320,13 +320,13 @@ function fetchItemsAdmin() {
 function renderItem(json, state) {
     var obj = document.getElementById('item')
     var cdate = new Date(json.created*1000).toDateString()
-    obj.innerHTML = "<h2>Item #" + state + ": <span style='color: #369;'>" +
json.title + "</span></h2>"
+    obj.innerHTML = "<h2>Task #" + state + ":<br/><span style='color: #369;'>"
+ json.title + "</span></h2>"
     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]
+ " - " + 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.url && json.url.length > 10 ? "<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 : "") +
         ((json.timeout && json.timeout > 0) ? "<b>Task expires:</b>
" + new Date(json.timeout*1000).toDateString() : "") +
         "<blockquote style='text-align: left;'><q>" + json.description + "</q></blockquote>"
+



Mime
View raw message