myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3047] trunk/app/views/contributions/_in_packs_bo


From: noreply
Subject: [myexperiment-hackers] [3047] trunk/app/views/contributions/_in_packs_box.rhtml: Sorted packs in Add to your Pack box by last update
Date: Thu, 26 Jul 2012 08:06:28 +0000 (UTC)

Revision
3047
Author
fbacall
Date
2012-07-26 08:06:27 +0000 (Thu, 26 Jul 2012)

Log Message

Sorted packs in Add to your Pack box by last update

Modified Paths

Diff

Modified: trunk/app/views/contributions/_in_packs_box.rhtml (3046 => 3047)


--- trunk/app/views/contributions/_in_packs_box.rhtml	2012-07-25 15:28:44 UTC (rev 3046)
+++ trunk/app/views/contributions/_in_packs_box.rhtml	2012-07-26 08:06:27 UTC (rev 3047)
@@ -44,7 +44,7 @@
                         :id => "add_to_pack_form" } do %>
             <p>
               <select id="add_to_pack_selector" style="width: 99%"  = $(this).options[this.selectedIndex].value; return false">
-                <% potential_packs.each do |p| -%>
+                <% potential_packs.sort_by(&:updated_at).reverse!.each do |p| -%>
                   <option value="<%= quick_add_pack_url(p) -%>">
                     <%= h(p.title) -%>
                   </option>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]