[Rt-commit] rt branch, 4.2/auto-discover-stylesheets, repushed
Alex Vandiver
alexmv at bestpractical.com
Thu May 22 13:14:53 EDT 2014
The branch 4.2/auto-discover-stylesheets was deleted and repushed:
was 5b72ae16e97e8bc7c80a76f35605e77e9c74e365
now f52d92c7e0b65532d50833891d2a042f78e66a25
1: 5b72ae1 ! 1: f52d92c auto discover available stylesheets
@@ -9,7 +9,10 @@
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@
+ use strict;
+ use warnings;
++use 5.010;
use File::Spec ();
use Symbol::Global::Name;
+use List::MoreUtils 'uniq';
@@ -17,20 +20,13 @@
=head1 NAME
@@
-
- =cut
-
-+my @stylesheets;
- our %META;
- %META = (
- # General user overridable options
-@@
Widget => '/Widgets/Form/Select',
WidgetArguments => {
Description => 'Theme', #loc
- # XXX: we need support for 'get values callback'
- Values => [qw(rudder web2 aileron ballard)],
+ Callback => sub {
++ state @stylesheets;
+ unless (@stylesheets) {
+ for my $static_path ( RT::Interface::Web->StaticRoots ) {
+ my $css_path =
More information about the rt-commit
mailing list