缺陷列表新增四种类型样式
This commit is contained in:
parent
45fa01c773
commit
45a03bac1b
|
@ -67,7 +67,9 @@ module IssuesHelper
|
|||
s.html_safe
|
||||
end
|
||||
|
||||
def link_to_issue_type(value)
|
||||
#获取跟踪类型
|
||||
#REDO:时间紧需要优化,两个方法可以综合成一个
|
||||
def get_issue_type(value)
|
||||
if value == "缺陷"
|
||||
class_type = "red_btn_cir ml10"
|
||||
elsif value == "功能"
|
||||
|
@ -79,6 +81,18 @@ module IssuesHelper
|
|||
end
|
||||
end
|
||||
|
||||
def get_issue_typevalue(value)
|
||||
if value == "缺陷"
|
||||
assign = "缺陷"
|
||||
elsif value == "功能"
|
||||
assign = "功能"
|
||||
elsif value == "支持"
|
||||
assign = "支持"
|
||||
else
|
||||
assign = "任务"
|
||||
end
|
||||
end
|
||||
|
||||
def render_issue_subject_with_tree(issue)
|
||||
s = ''
|
||||
ancestors = issue.root? ? [] : issue.ancestors.visible.all
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
<div class="problem_txt fl">
|
||||
<%= link_to issue.author.name, user_path(issue.author), :class => "problem_name c_orange fl" %>
|
||||
<span class="fl"><%= l(:label_post_on_issue) %>(<%= "#{raw column_content[2]}" %>):</span>
|
||||
<%=link_to column_content[4], issue_path(issue.id), :class => "problem_tit02 fl" %>
|
||||
|
||||
<%=link_to "#{column_content[4]}<span class = '#{get_issue_type(column_content[1])}'>#{get_issue_typevalue(column_content[1])}</span>".html_safe, issue_path(issue.id), :class => "problem_tit02 fl" %>
|
||||
<div class="cl"></div>
|
||||
<p>
|
||||
<% unless issue.assigned_to_id.nil? %>
|
||||
|
|
Loading…
Reference in New Issue