Files
nairobi/app/components/shared/comments_count_component.rb
taitus 2865ee286f Add comments count component
Remove all the translations that are left over after having unified them
in the component.
2022-08-19 15:40:51 +02:00

13 lines
268 B
Ruby

class Shared::CommentsCountComponent < ApplicationComponent
attr_reader :comments_count, :url
def initialize(comments_count, url: nil)
@comments_count = comments_count
@url = url
end
def text
t("shared.comments", count: comments_count)
end
end