[Rt-commit] rt branch, 4.2/config-page-extensions, repushed
Dustin Collins
strega at bestpractical.com
Wed Aug 31 18:50:10 EDT 2016
The branch 4.2/config-page-extensions was deleted and repushed:
was fd10c24838c55d5ae237feddc1f6ac2854895d48
now 8cd8411090e783a460d84a4725e7f33a81145d2f
1: fd10c24 ! 1: 8cd8411 Add loaded RT Extension names and version numbers to admin config page
@@ -1,8 +1,30 @@
-Author: Dustin Collins <strega at MacBook-2015.local>
+Author: Dustin Collins <strega at bestpractical.com>
- Added loaded RT Extension names and version numbers to admin config page
+ Add loaded RT Extension names and version numbers to admin config page
Fixes: I#31482
+
+diff --git a/lib/RT/Plugin.pm b/lib/RT/Plugin.pm
+--- a/lib/RT/Plugin.pm
++++ b/lib/RT/Plugin.pm
+@@
+ return $self->{name};
+ }
+
++=head2 Version
++
++Returns the extension version.
++
++=cut
++
++sub Version {
++ my $self = shift;
++ return $self->Name->VERSION;
++}
++
+ =head2 Path
+
+ Takes a name of sub directory and returns its full path, for example:
diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
--- a/share/html/Admin/Tools/Configuration.html
@@ -21,8 +43,8 @@
+% foreach my $pluginName (grep $_, RT->Config->Get('Plugins')) {
+% my $plugin = RT::Plugin->new( name => $pluginName );
+<tr class="<% $row++ %2 ? 'oddline' : 'evenline'%>">
-+<td class="collection-as-table"><%$plugin->Name()%></td>
-+<td class="collection-as-table"><%$pluginName->VERSION%></td>
++<td class="collection-as-table"><%$plugin->Name%></td>
++<td class="collection-as-table"><%$plugin->Version%></td>
+</tr>
+% }
+</table>
More information about the rt-commit
mailing list