add link to honoree front page for current honor

This commit is contained in:
EricTYL 2019-12-31 15:59:38 +08:00
parent f6e74071ce
commit 876c93e591
1 changed files with 3 additions and 2 deletions

View File

@ -99,7 +99,8 @@ class Honor
def get_plugin_field_data(field) def get_plugin_field_data(field)
case field case field
when "honoree" when "honoree"
value = self.member_profile.name path = OrbitHelper.url_to_plugin_show(self.member_profile.to_param, 'member')
value = "<a href='#{path}'>" + self.member_profile.name + "</a>"
when "language" when "language"
value = I18n.t(self.language) rescue "" value = I18n.t(self.language) rescue ""
when "honor_type" when "honor_type"
@ -129,4 +130,4 @@ class Honor
end end
end end
end end