[Bps-public-commit] RT-BugTracker-Public branch, 4.2-4.4-compatibility, updated. 1.00-20-gcf4814b
Shawn Moore
shawn at bestpractical.com
Wed Mar 29 17:20:13 EDT 2017
The branch, 4.2-4.4-compatibility has been updated
via cf4814ba1fd8ef6505abbd918e57e60679e7f9e0 (commit)
from a2d4f33dc9401186251fc4247d2fc8efd55add8e (commit)
Summary of changes:
html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged | 10 ++++++----
html/Public/index.html | 10 ++++++++++
2 files changed, 16 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit cf4814ba1fd8ef6505abbd918e57e60679e7f9e0
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Wed Mar 29 21:18:37 2017 +0000
Respect RT::BugTracker's BugTracker_ShowAllDistributions
diff --git a/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged b/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
index 4d55447..8b37d2c 100644
--- a/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
+++ b/html/Callbacks/BugTracker-Public/Elements/Tabs/Privileged
@@ -70,10 +70,12 @@ Menu()->child(
path => '/Public/',
);
-Menu()->child(
- browse_dist => title => loc('Browse Distributions'),
- path => '/Public/Dist/Browse.html',
-);
+unless (RT->Config->Get('BugTracker_ShowAllDistributions')) {
+ Menu()->child(
+ browse_dist => title => loc('Browse Distributions'),
+ path => '/Public/Dist/Browse.html',
+ );
+}
Menu->child( "about", menu => $about ) if $about;
diff --git a/html/Public/index.html b/html/Public/index.html
index 2c81f2b..a1110f7 100755
--- a/html/Public/index.html
+++ b/html/Public/index.html
@@ -50,6 +50,7 @@
<& /Elements/ListActions, actions => \@results &>
+% unless (RT->Config->Get('BugTracker_ShowAllDistributions')) {
<p>
<form action="<% RT->Config->Get('WebPath') %><% $m->request_path %>" method="get">
<label for="form-dist-name"><&|/l&>Find a distribution by full name:</&></label>
@@ -65,6 +66,7 @@
<input type="submit" class="button" value="<&|/l&>Search</&>" />
</form>
</p>
+% }
<p>
<form action="/Public/Search/Simple.html" method="get">
@@ -75,6 +77,14 @@
<&|/l&>This search looks for bug report IDs, distribution names, usernames, and bug report descriptions among other fields.</&>
</p>
+
+% if (RT->Config->Get('BugTracker_ShowAllDistributions')) {
+<h2><&|/l&>Distributions</&></h2>
+
+% my $queues = RT::Queues->new($session{CurrentUser});
+% $queues->UnLimit;
+ <& /Public/Elements/DistributionList, queues => $queues &>
+% }
<%ARGS>
$Distribution => ''
$Maintainer => ''
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list