Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1349ECE1 for ; Wed, 29 May 2013 15:08:42 +0000 (UTC) Received: (qmail 58782 invoked by uid 500); 29 May 2013 15:08:42 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 58753 invoked by uid 500); 29 May 2013 15:08:42 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 58725 invoked by uid 99); 29 May 2013 15:08:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 15:08:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2B7E289CC28; Wed, 29 May 2013 15:08:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: brondsem@apache.org To: allura-commits@incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#5716] make project admin's support choices configurable, and off by default Date: Wed, 29 May 2013 15:08:41 +0000 (UTC) Updated Branches: refs/heads/db/5716 3ca70b489 -> 1653215c2 [#5716] make project admin's support choices configurable, and off by default Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/1653215c Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/1653215c Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/1653215c Branch: refs/heads/db/5716 Commit: 1653215c21354fb01e2eeac8647bd86ab404ade3 Parents: 3ca70b4 Author: Dave Brondsema Authored: Wed May 29 14:08:58 2013 +0000 Committer: Dave Brondsema Committed: Wed May 29 14:09:44 2013 +0000 ---------------------------------------------------------------------- .../templates/admin_widgets/metadata_admin.html | 6 +++++- Allura/development.ini | 6 ++++++ Allura/test.ini | 2 ++ 3 files changed, 13 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1653215c/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html ---------------------------------------------------------------------- diff --git a/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html b/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html index b37d638..454f33a 100644 --- a/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html +++ b/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html @@ -41,6 +41,8 @@ {{widget.display_field(widget.fields.short_description) }}
 
+ + {% if tg.config.get('support_tool_choices') %} Preferred Support Page (for users of your project):
{% if c.form_errors.get('support_page_url') %}
{{c.form_errors.get('support_page_url')}}
@@ -48,7 +50,7 @@
{% for ac in c.project.app_configs %} - {% if ac.tool_name.lower() in ['wiki', 'tickets', 'discussion'] %} + {% if ac.tool_name.lower() in tg.config['support_tool_choices'].split() %}
@@ -60,6 +62,8 @@ {% if value.support_page == '_url' %} checked{% endif %}>
+ {% endif %} + {{ widget.display_label(widget.fields.twitter_handle) }}
{{widget.display_field(widget.fields.twitter_handle) }} http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1653215c/Allura/development.ini ---------------------------------------------------------------------- diff --git a/Allura/development.ini b/Allura/development.ini index cdde88e..b3c084f 100644 --- a/Allura/development.ini +++ b/Allura/development.ini @@ -141,6 +141,12 @@ scm.repos.tarball.root = /usr/share/nginx/www/ scm.repos.tarball.url_prefix = http://localhost/ scm.repos.tarball.zip_binary = /usr/bin/zip +# space-separated list of tool names that are valid options +# for project admins to set for their 'support_page' field +# this field is not used by default in Allura, so this option +# is disabled by default +#support_tool_choices = wiki tickets discussion + trovecategories.enableediting = true # ActivityStream http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1653215c/Allura/test.ini ---------------------------------------------------------------------- diff --git a/Allura/test.ini b/Allura/test.ini index f749705..b3d9760 100644 --- a/Allura/test.ini +++ b/Allura/test.ini @@ -101,6 +101,8 @@ scm.repos.tarball.enable = true scm.repos.tarball.root = /tmp/tarball scm.repos.tarball.url_prefix = file:// +support_tool_choices = wiki tickets discussion + #stats.sample_rate = 0 disable_csrf_protection=1