|
|
|
@ -278,4 +278,29 @@ module UsersHelper
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#获取用户留言相关的连接
|
|
|
|
|
def user_jour_feed_back_url active
|
|
|
|
|
if active.act_type == "JournalsForMessage"
|
|
|
|
|
jour = JournalsForMessage.find active.act_id
|
|
|
|
|
if jour
|
|
|
|
|
case jour.jour_type
|
|
|
|
|
when "Principal"
|
|
|
|
|
link_to(l(:label_goto), user_newfeedback_user_path(jour.jour_id))
|
|
|
|
|
when "Project"
|
|
|
|
|
link_to(l(:label_goto), project_feedback_path(jour.jour_id))
|
|
|
|
|
when "Bid"
|
|
|
|
|
link_to(l(:label_goto), course_for_bid_path(jour.jour_id))
|
|
|
|
|
when "Course"
|
|
|
|
|
link_to(l(:label_goto), course_feedback_path(jour.jour_id))
|
|
|
|
|
when "Contest"
|
|
|
|
|
link_to(l(:label_goto), show_contest_contest_path(jour.jour_id))
|
|
|
|
|
when "Softapplication"
|
|
|
|
|
link_to(l(:label_goto), softapplication_path(jour.jour_id))
|
|
|
|
|
when "HomeworkAttach"
|
|
|
|
|
link_to(l(:label_goto), course_for_bid_path(jour.jour_id))
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|