diff --git a/app/models/packages.py b/app/models/packages.py index 96ef5833..5b82d212 100644 --- a/app/models/packages.py +++ b/app/models/packages.py @@ -108,6 +108,15 @@ class PackageType(enum.Enum): return lazy_gettext(u"%(display_name)s has a texture pack placed at #%(place)d.", display_name=display_name, place=place) + @property + def do_you_recommend(self): + if self == PackageType.MOD: + return lazy_gettext(u"Do you recommend this mod?") + elif self == PackageType.GAME: + return lazy_gettext(u"Do you recommend this game?") + elif self == PackageType.TXP: + return lazy_gettext(u"Do you recommend this texture pack?") + @classmethod def get(cls, name): try: diff --git a/app/templates/macros/reviews.html b/app/templates/macros/reviews.html index 1dc334b6..707d003f 100644 --- a/app/templates/macros/reviews.html +++ b/app/templates/macros/reviews.html @@ -114,7 +114,7 @@