个人动态列表留言动态url错误
This commit is contained in:
parent
f0ba408a10
commit
d99910e8a1
|
@ -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
|
||||
|
|
|
@ -103,7 +103,8 @@
|
|||
</p>
|
||||
<div style="display: inline-block; float: right; margin-top: 0px">
|
||||
<span>
|
||||
<%= link_to(l(:label_goto), user_newfeedback_user_path(e.user_id)) %>
|
||||
<% puts 11111111111111%>
|
||||
<%= user_jour_feed_back_url e %>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue