New texts and titles for followable buttons.

This commit is contained in:
taitus
2017-07-06 00:43:05 +02:00
committed by Senén Rodero Rodríguez
parent e54e33f296
commit 60e812c2e5
3 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,11 @@ module FollowsHelper
t('shared.follow_entity', entity: t("activerecord.models.#{entity}.one").downcase)
end
def follow_entity_title(followable)
entity = followable.class.name.gsub('::', '/').downcase
t('shared.follow_entity_title', entity: t("activerecord.models.#{entity}.one").downcase)
end
def unfollow_entity_text(followable)
entity = followable.class.name.gsub('::', '/').downcase
t('shared.unfollow_entity', entity: t("activerecord.models.#{entity}.one").downcase)