forked from saurabh/personal-honor
change to new member front page generator
This commit is contained in:
parent
798fc25978
commit
f6e74071ce
|
@ -35,7 +35,7 @@ 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.member_url_to_show(member_profile.to_param, role_status_id) rescue '#'
|
link = 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='#{link}'>" + (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 "")}
|
||||||
|
|
Loading…
Reference in New Issue