mod/pointer/set/abstract/02_pointer/html_views.rb in card-1.95.3 vs mod/pointer/set/abstract/02_pointer/html_views.rb in card-1.96.0

- old
+ new

@@ -1,7 +1,17 @@ +include_set Abstract::BsBadge + format :html do view :core, cache: :never do standard_pointer_core + end + + def stat_number + card.item_count + end + + def stat_label + stat_number == 1 ? "item" : "items" end def standard_pointer_core with_paging do |paging_args| wrap_with :div, standard_pointer_items(paging_args), class: "pointer-list"