change link to path

This commit is contained in:
EricTYL 2019-12-31 16:11:54 +08:00
parent 7a36c0ee2e
commit 7eb2bf6833
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ class PersonalHonorsController < ApplicationController
when "authors" when "authors"
member_profile = honor.send(:member_profile) member_profile = honor.send(:member_profile)
role_status_id = member_profile.role_status_ids.first.to_s role_status_id = member_profile.role_status_ids.first.to_s
link = OrbitHelper.url_to_plugin_show(member_profile.to_param, 'member') rescue '#' path = OrbitHelper.url_to_plugin_show(member_profile.to_param, 'member') rescue '#'
t << {"value" => "<a href='#{link}'>" + (member_profile.name rescue "") + "</a>" } t << {"value" => "<a href='#{path}'>" + (member_profile.name rescue "") + "</a>" }
when "award_date" when "award_date"
t << {"value" => (honor.send(fs).strftime("%Y/%m") rescue "")} t << {"value" => (honor.send(fs).strftime("%Y/%m") rescue "")}
else else