[Rt-commit] rt branch, 4.2/report-os-details, updated. rt-4.0.6-452-g2c8d2d5

Alex Vandiver alexmv at bestpractical.com
Mon Dec 17 14:47:01 EST 2012


The branch, 4.2/report-os-details has been updated
       via  2c8d2d51fa1159f88fb07b315a372b7e1920466a (commit)
       via  38a9115fd65d6fd6f44ed6b10adf6213ebc3b150 (commit)
      from  655a7df2068f7098e4745fd8c6f24675570ef96b (commit)

Summary of changes:
 share/html/Admin/Tools/Configuration.html | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 38a9115fd65d6fd6f44ed6b10adf6213ebc3b150
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Dec 17 14:26:20 2012 -0500

    Add a row to show which deployment strategy is in use

diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
index eeedf20..b4f606d 100644
--- a/share/html/Admin/Tools/Configuration.html
+++ b/share/html/Admin/Tools/Configuration.html
@@ -258,6 +258,14 @@ if ($item =~ /^\s*(.*?)\s*v(\S+);/) {
 
 <&|/Widgets/TitleBox, title => loc("Operating System") &>
 <table border="0" cellspacing="0" cellpadding="5" width="100%" class="collection">
+<tr class="collection-as-table evenline">
+<td class="collection-as-table">Deployment type</td>
+<td class="collection-as-table"><%
+  $INC{'mod_perl.pm'} ? "mod_perl" :
+  $INC{'FCGI.pm'}     ? "fastcgi"  :
+                        "standalone" %>
+</td>
+</tr>
 <%perl>
 my @os = (
     "Distribution"   => 'lsb_release --all',
@@ -281,7 +289,7 @@ while (my ($name, $cmd) = splice @os, 0, 2) {
         }
     }
 }
-my $row = 0;
+my $row = 1;
 </%perl>
 % while (my ($name, $output) = splice @os_info, 0, 2) {
 <tr class="collection-as-table <% $row++ % 2 ? "oddline" : "evenline" %>">

commit 2c8d2d51fa1159f88fb07b315a372b7e1920466a
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Dec 17 14:46:54 2012 -0500

    Dump full set of environment variables

diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
index b4f606d..a0d4bf3 100644
--- a/share/html/Admin/Tools/Configuration.html
+++ b/share/html/Admin/Tools/Configuration.html
@@ -256,6 +256,22 @@ if ($item =~ /^\s*(.*?)\s*v(\S+);/) {
 </pre>
 </&>
 
+<&|/Widgets/TitleBox, title=> loc("Environment variables") &>
+<table border="0" cellspacing="0" cellpadding="5" width="100%" class="collection">
+<tr class="collection-as-table">
+<th class="collection-as-table"><&|/l&>Variable</&></th>
+<th class="collection-as-table"><&|/l&>Value</&></th>
+</tr>
+% my $row = 0;
+% for my $key (sort keys %ENV) {
+<tr class="collection-as-table <% $row++ %2 ? 'oddline' : 'evenline'%>">
+<td class="collection-as-table"><% $key %></td>
+<td class="collection-as-table"><% $ENV{$key} %></td>
+</tr>
+% }
+</table>
+</&>
+
 <&|/Widgets/TitleBox, title => loc("Operating System") &>
 <table border="0" cellspacing="0" cellpadding="5" width="100%" class="collection">
 <tr class="collection-as-table evenline">

-----------------------------------------------------------------------


More information about the Rt-commit mailing list