$def with(ratings_count, ratings_average, want_to_read_count) $ formatted_want_to_read_count = "{:,}".format(want_to_read_count) if want_to_read_count else "" $ ratings_label = _('rating') if ratings_count == 1 else _('ratings') $if ratings_count: $:macros.StarRatingsComponent(ratings_count, ratings_average, 'results_page') $if want_to_read_count and ratings_count: · $if want_to_read_count: $_('%(want_to_read_count)s Want to read', want_to_read_count=formatted_want_to_read_count)