Author: humbedooh
Date: Fri Feb 12 16:23:23 2016
New Revision: 1730058
URL: http://svn.apache.org/viewvc?rev=1730058&view=rev
Log:
title fixes
Modified:
comdev/helpwanted.apache.org/site/widget.js
comdev/helpwanted.apache.org/site/wtest.html
Modified: comdev/helpwanted.apache.org/site/widget.js
URL:
http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/widget.js?rev=1730058&r1=1730057&r2=1730058&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/widget.js (original)
+++ comdev/helpwanted.apache.org/site/widget.js Fri Feb 12 16:23:23 2016
@@ -114,6 +114,7 @@ function displayItemsWidget(json, state)
numItems++
}
var obj = state.object ? state.object : widgetobj
+ var title = state.title ? state.title : widgettitle
obj.setAttribute("class", "hwitems hwwidget")
if (state && typeof(state) === "string") {
@@ -133,7 +134,7 @@ function displayItemsWidget(json, state)
}
obj.innerHTML = ""
- var tbl = "<table style='width: 100%; text-align: left;'><tr><td
colspan='5' style='text-align: center;'><img
src='https://helpwanted.apache.org/images/cube.png'/> Tasks " + widgettitle + "
would like help with"+tags+":</td></tr>" +
+ var tbl = "<table style='width: 100%; text-align: left;'><tr><td
colspan='5' style='text-align: center;'><img
src='https://helpwanted.apache.org/images/cube.png'/> Tasks " + title + " would
like help with"+tags+":</td></tr>" +
"<tr style='cursor: pointer' title='Click on a column to sort'><th
onclick='displayItemsWidget(null, \"title\");'>Title</th>" +
"<th onclick='displayItemsWidget(null, \"languages\");'>Languages</th>" +
"<th onclick='displayItemsWidget(null, \"difficulty\");'>Difficulty</th>" +
@@ -183,7 +184,7 @@ function displayItemsWidget(json, state)
obj.innerHTML += tbl
}
-function fetchItemsWidget(languages, types, projects, sortBy, tags, object) {
+function fetchItemsWidget(languages, types, projects, sortBy, tags, object,
title) {
if (!languages) languages = []
if (!types) types = []
if (!projects) projects = []
@@ -192,6 +193,7 @@ function fetchItemsWidget(languages, typ
{
languages: languages,
types: types,
+ title: title,
projects: projects,
sortBy: sortBy,
tags: tags.join(", "),
@@ -225,6 +227,6 @@ for (var i in divs) {
css.rel = "stylesheet";
css.href = "https://helpwanted.apache.org/css/hw2.css";
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(css)
- fetchItemsWidget([],[],[dn], null, dtag, divs[i])
+ fetchItemsWidget([],[],[dn], null, dtag, divs[i], widgettitle)
}
}
\ No newline at end of file
Modified: comdev/helpwanted.apache.org/site/wtest.html
URL:
http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/wtest.html?rev=1730058&r1=1730057&r2=1730058&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/wtest.html (original)
+++ comdev/helpwanted.apache.org/site/wtest.html Fri Feb 12 16:23:23 2016
@@ -10,10 +10,10 @@
<h2>Sample widget page</h2>
This is a sample widget page. Just an ordinary HTML page with a widget
attached by inserting the following code:
<pre style='background: #FFE; border: 1px solid #666;'>
-<div style="width: 700px;" type="helpwanted" project="<span
id='pr'>httpd</span>" <span id='tags'></span> description="<span id='pru'>the
Apache HTTP Server</span>"></div>
+<div style="width: 700px;" type="helpwanted" project="<span
id='pr'>httpd</span>" <span id='tags'></span> description="<span id='pru'>the
Apache HTTP Server Project</span>"></div>
<script src="https://helpwanted.apache.org/widget.js"
type="text/javascript"></script>
</pre>
- <div id="foo" style="width: 700px;" type="helpwanted" project="httpd"
description="the Apache HTTP Server"></div>
+ <div id="foo" style="width: 700px;" type="helpwanted" project="httpd"
description="the Apache HTTP Server Project"></div>
<p>Projects can also search the entire foundation task list, or use
tags:</p>