You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/02/13 16:36:13 UTC
[kibble] branch master updated: fix assigment order, typo
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push:
new 2301196 fix assigment order, typo
2301196 is described below
commit 2301196e7de0bc534ba684b50f9a18c5c44d9e99
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Feb 13 17:36:05 2018 +0100
fix assigment order, typo
---
ui/js/coffee/widget_comstat.coffee | 9 +++++----
ui/js/kibble.v1.js | 8 ++++----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/ui/js/coffee/widget_comstat.coffee b/ui/js/coffee/widget_comstat.coffee
index 907fab4..4f052e1 100644
--- a/ui/js/coffee/widget_comstat.coffee
+++ b/ui/js/coffee/widget_comstat.coffee
@@ -55,15 +55,15 @@ comstat = (json, state) ->
app(tbl, tr)
tb = new HTML('tbody')
json.stats.code.newcomers.sort((a,b) => json.bios[b].code[0] - json.bios[a].code[0])
+ dstyle = 'show'
for person, i in json.stats.code.newcomers
oemail = person
hash = json.bios[person].code[1].id.split('/')[1]
repo = json.bios[person].code[1].sourceURL
wh = new Date(json.bios[person].code[0] * 1000.0).toDateString()
person = json.bios[person].bio
- dstyle = 'show'
if i == 6
- m = json.stats.issues.newcomers.length - 6
+ m = json.stats.code.newcomers.length - i
tr = mk('tr', {scope: 'row', id: 'comstat_code_more'}, [
mk('td', {colspan: "3"}, new HTML('a', { href: 'javascript:void(comShow("code"));'}, "+#{m} more..."))
])
@@ -120,15 +120,16 @@ comstat = (json, state) ->
app(tbl, tr)
tb = new HTML('tbody')
json.stats.issues.newcomers.sort((a,b) => json.bios[b].issue[0] - json.bios[a].issue[0])
+ dstyle = 'show'
for person, i in json.stats.issues.newcomers
oemail = person
url = json.bios[person].issue[1].url
key = json.bios[person].issue[1].key || url
wh = new Date(json.bios[person].issue[0] * 1000.0).toDateString()
person = json.bios[person].bio
- dstyle = 'show'
+
if i == 6
- m = json.stats.issues.newcomers.length - 6
+ m = json.stats.issues.newcomers.length - i
tr = mk('tr', {scope: 'row', id: 'comstat_issue_more'}, [
mk('td', {colspan: "3"}, new HTML('a', { href: 'javascript:void(comShow("issue"));'}, "+#{m} more..."))
])
diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js
index 271feaa..862f62c 100644
--- a/ui/js/kibble.v1.js
+++ b/ui/js/kibble.v1.js
@@ -5370,6 +5370,7 @@ comstat = function(json, state) {
return json.bios[b].code[0] - json.bios[a].code[0];
};
})(this));
+ dstyle = 'show';
ref = json.stats.code.newcomers;
for (i = q = 0, len = ref.length; q < len; i = ++q) {
person = ref[i];
@@ -5378,9 +5379,8 @@ comstat = function(json, state) {
repo = json.bios[person].code[1].sourceURL;
wh = new Date(json.bios[person].code[0] * 1000.0).toDateString();
person = json.bios[person].bio;
- dstyle = 'show';
if (i === 6) {
- m = json.stats.issues.newcomers.length - 6;
+ m = json.stats.code.newcomers.length - i;
tr = mk('tr', {
scope: 'row',
id: 'comstat_code_more'
@@ -5476,6 +5476,7 @@ comstat = function(json, state) {
return json.bios[b].issue[0] - json.bios[a].issue[0];
};
})(this));
+ dstyle = 'show';
ref1 = json.stats.issues.newcomers;
for (i = u = 0, len1 = ref1.length; u < len1; i = ++u) {
person = ref1[i];
@@ -5484,9 +5485,8 @@ comstat = function(json, state) {
key = json.bios[person].issue[1].key || url;
wh = new Date(json.bios[person].issue[0] * 1000.0).toDateString();
person = json.bios[person].bio;
- dstyle = 'show';
if (i === 6) {
- m = json.stats.issues.newcomers.length - 6;
+ m = json.stats.issues.newcomers.length - i;
tr = mk('tr', {
scope: 'row',
id: 'comstat_issue_more'
--
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.