fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-04-04 11:13 am

[dw-free] note if a user has beta testing turned on

[commit: http://hg.dwscoalition.org/dw-free/rev/461e4985d9af]

http://bugs.dwscoalition.org/show_bug.cgi?id=3591

Add a note to the support request, stating which features a user has opted
to beta.

Patch by [personal profile] fu.

Files modified:
  • htdocs/support/see_request.bml
  • htdocs/support/see_request.bml.text
--------------------------------------------------------------------------------
diff -r ea37a2264c0c -r 461e4985d9af htdocs/support/see_request.bml
--- a/htdocs/support/see_request.bml	Mon Apr 04 17:36:49 2011 +0800
+++ b/htdocs/support/see_request.bml	Mon Apr 04 19:13:17 2011 +0800
@@ -436,6 +436,12 @@ body<=
                 if $view_history;
             $ret .= "<a href='$LJ::SITEROOT/admin/userlog?user=$u->{user}'>userlog</a> "
                 if $view_userlog;
+        }
+
+        if ( $u->in_class( LJ::BetaFeatures->cap_name )
+            && LJ::Support::has_any_support_priv( $remote ) ) {
+            $ret .= "<br />$ML{'.betatesting'}: ";
+            $ret .= join ", ", $u->prop( LJ::BetaFeatures->prop_name );
         }
 
         $ret .= "</td></tr>\n";
diff -r ea37a2264c0c -r 461e4985d9af htdocs/support/see_request.bml.text
--- a/htdocs/support/see_request.bml.text	Mon Apr 04 17:36:49 2011 +0800
+++ b/htdocs/support/see_request.bml.text	Mon Apr 04 19:13:17 2011 +0800
@@ -10,6 +10,8 @@
 .approve.screened=Approve Screened Response
 
 .back.link=Back to <a [[backlink]]>the support area</a>.
+
+.betatesting=Beta testing
 
 .birthday=birthday
 
--------------------------------------------------------------------------------