修改缺陷不能显示的bug

This commit is contained in:
huang 2015-04-09 09:22:09 +08:00
parent b415575e0e
commit 45fa01c773
3 changed files with 126 additions and 126 deletions

View File

@ -67,15 +67,15 @@ module IssuesHelper
s.html_safe
end
def link_to_issue_type
if column_content[1].to_s == "缺陷"
def link_to_issue_type(value)
if value == "缺陷"
class_type = "red_btn_cir ml10"
elsif column_content[1] == "功能"
class="blue_btn_cir ml10"
elsif column_content[1] == "支持"
class="green_btn_cir ml10"
elsif value == "功能"
class_type = "blue_btn_cir ml10"
elsif value == "支持"
class_type = "green_btn_cir ml10"
else
class_type="orange_btn_cir ml10">
class_type = "orange_btn_cir ml10"
end
end