Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F2984200B8C for ; Mon, 12 Sep 2016 12:19:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F12BE160AC8; Mon, 12 Sep 2016 10:19:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 412D1160AB8 for ; Mon, 12 Sep 2016 12:19:42 +0200 (CEST) Received: (qmail 9463 invoked by uid 500); 12 Sep 2016 10:19:41 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 9454 invoked by uid 99); 12 Sep 2016 10:19:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 10:19:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1AC1CC0372 for ; Mon, 12 Sep 2016 10:19:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 43GJhKjEdeVN for ; Mon, 12 Sep 2016 10:19:40 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C61A560D7C for ; Mon, 12 Sep 2016 10:19:39 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F2CEDE0069 for ; Mon, 12 Sep 2016 10:19:38 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id EC3363A05B6 for ; Mon, 12 Sep 2016 10:19:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1760330 - /comdev/reporter.apache.org/trunk/site/render.js Date: Mon, 12 Sep 2016 10:19:38 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160912101938.EC3363A05B6@svn01-us-west.apache.org> archived-at: Mon, 12 Sep 2016 10:19:43 -0000 Author: sebb Date: Mon Sep 12 10:19:38 2016 New Revision: 1760330 URL: http://svn.apache.org/viewvc?rev=1760330&view=rev Log: Show likely JIRA keys for import dialog Modified: comdev/reporter.apache.org/trunk/site/render.js Modified: comdev/reporter.apache.org/trunk/site/render.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/render.js?rev=1760330&r1=1760329&r2=1760330&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/render.js (original) +++ comdev/reporter.apache.org/trunk/site/render.js Mon Sep 12 10:19:38 2016 @@ -689,7 +689,12 @@ function renderFrontPage(json) { dialog.setAttribute("id", "dialog_" + pmc); dialog.setAttribute("title", "Fetch data from JIRA for " + pmc) dialog.setAttribute("style", "display: none;") - dialog.innerHTML = "
JIRA Project:
Optional prepend:
"+ + if (jsdata.keys[pmc] && jsdata.keys[pmc].length > 0) { + dialog.innerHTML = "

Suggested JIRA Keys: " + jsdata.keys[pmc].join(", ") + "

" + } else { + dialog.innerHTML = "

No JIRA keys found - are you sure this project uses JIRA?

" + } + dialog.innerHTML += "JIRA Project:
Optional prepend:
"+ "
"+ "

If you have multiple JIRA projects and they only have the version number in their release versions, please enter the component name in the 'prepend' field.

" document.getElementById('tab_' + pmc).appendChild(dialog)