|
|
@ -1555,6 +1555,25 @@ module ApplicationHelper
|
|
|
|
date = time.strftime("%Y年%m月%d日")
|
|
|
|
date = time.strftime("%Y年%m月%d日")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#当TAG数量过多时,更多链接
|
|
|
|
|
|
|
|
#1代表是user类型 2代表是project类型 3代表是issue类型 4代表需求 9代表课程
|
|
|
|
|
|
|
|
def more_tags id,object_flag
|
|
|
|
|
|
|
|
a= 1
|
|
|
|
|
|
|
|
case object_flag
|
|
|
|
|
|
|
|
when "1"
|
|
|
|
|
|
|
|
s = link_to l(:label_more_tags),:controller => "users", :action => "show", :id => id
|
|
|
|
|
|
|
|
when "2"
|
|
|
|
|
|
|
|
s = link_to l(:label_more_tags),:controller => "projects", :action => "show", :id => id
|
|
|
|
|
|
|
|
when "3"
|
|
|
|
|
|
|
|
s = link_to l(:label_more_tags),:controller => "issues", :action => "show", :id => id
|
|
|
|
|
|
|
|
when "4"
|
|
|
|
|
|
|
|
s = link_to l(:label_more_tags),:controller => "bids", :action => "show", :id => id
|
|
|
|
|
|
|
|
when "9"
|
|
|
|
|
|
|
|
s = link_to l(:label_more_tags),:controller => "courses", :action => "show", :id => id
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
s
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def wiki_helper
|
|
|
|
def wiki_helper
|
|
|
|