Skip to contentSkip to conversation

rrs: remove sorting from the 'No update reason' column

PATCH New Belen Barros Pena 1 participant 2 messages Aug 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rrs: remove sorting from the 'No update reason' column

Nothing useful can come from sorting by this column.

---
 templates/rrs/recipes.html | 1 +
 1 file changed, 1 insertion(+)
templates/rrs/recipes.html +1 -0
index 5d2ee5f..3ac73d2 100644
@@ -293,6 +293,7 @@ $(document).ready(function() {
             2: { sorter: false },
             5: { sorter: false },
             6: { sorter: false },
+            7: { sorter: false },
         }
     }); 
 {% endif %}
Signature · 1 line
2.3.2 (Apple Git-55)
#1 lore raw

PATCH 2/2 rrs: avoid too many columns in the recipes table

Currently, when you select 'Can't be updated' in the upstream status filter, the resulting table will add the 'No update reason' column to the default column set.

Although this is probably useful information to see in the table itself, it results in too many columns, and a rather unpleasant layout change.

This patch hides the 'Summary' column whenever you select 'Can't be updated' in the upstream status filter, effectively replacing the 'Summary' with the 'No update reason' column, which is probably more relevant in this context. Now you have less columns distracting you, and a slightly less jumpy layout change.

A designer would have come up with this solution in the first place. Sadly, she was never asked.

---
 templates/rrs/recipes.html | 2 ++
 1 file changed, 2 insertions(+)
templates/rrs/recipes.html +2 -0
index 3ac73d2..8927b2f 100644
@@ -218,8 +218,10 @@ $(document).ready(function() {
     function applyFilters() {
         if (upstreamStatus == 'Can\'t be updated') {
             $('.no_update_reason_column').show()
+            $('.summary_column').hide()            
         } else {
             $('.no_update_reason_column').hide()
+            $('.summary_column').show()            
         }
 
         if (upstreamStatus == 'All') {
Signature · 1 line
2.3.2 (Apple Git-55)