afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-05-21 04:35 pm

[dw-free] English-strip /community/sentinvites

[commit: http://hg.dwscoalition.org/dw-free/rev/26b2765a4c76]

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

English-strip dropdown and button

Patch by [personal profile] wyntarvox.

Files modified:
  • htdocs/community/sentinvites.bml
  • htdocs/community/sentinvites.bml.text
--------------------------------------------------------------------------------
diff -r 7bd20265586d -r 26b2765a4c76 htdocs/community/sentinvites.bml
--- a/htdocs/community/sentinvites.bml	Thu May 21 15:27:48 2009 +0000
+++ b/htdocs/community/sentinvites.bml	Thu May 21 16:35:25 2009 +0000
@@ -157,8 +157,8 @@ body<=
     my $showlinks = "<form method='get' action='/community/sentinvites.bml'>";
     $showlinks .= LJ::html_hidden('authas', $c->{user});
     $showlinks .= $ML{'.filterto'};
-    $showlinks .= LJ::html_select({ name => 'show', selected => $GET{show} }, map { $_, $_ } qw(all accepted outstanding rejected));
-    $showlinks .= LJ::html_submit(undef, 'Refresh');
+    $showlinks .= LJ::html_select( { name => 'show', selected => $GET{show} }, all => $ML{'.filterto.opts.all'}, accepted => $ML{'.filterto.opts.accepted'}, rejected => $ML{'.filterto.opts.rejected'}, outstanding => $ML{'.filterto.opts.outstanding'} );
+    $showlinks .= LJ::html_submit( undef, $ML{'.filterto.btn.refresh'} );
     $showlinks .= "</form>";
 
     my $filter = "&show=$GET{show}" if $GET{show};
diff -r 7bd20265586d -r 26b2765a4c76 htdocs/community/sentinvites.bml.text
--- a/htdocs/community/sentinvites.bml.text	Thu May 21 15:27:48 2009 +0000
+++ b/htdocs/community/sentinvites.bml.text	Thu May 21 16:35:25 2009 +0000
@@ -4,6 +4,16 @@
 .error.notcomm=[[user]] is not a community.
 
 .filterto=Filter to:
+
+.filterto.btn.refresh=Refresh
+
+.filterto.opts.accepted=accepted
+
+.filterto.opts.all=all
+
+.filterto.opts.outstanding=outstanding
+
+.filterto.opts.rejected=rejected
 
 .key.date=Date
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org