issue列表、issue显示页面鼠标经过的时候显示issue类型

This commit is contained in:
huang 2015-07-15 10:26:51 +08:00
parent b5593af9ea
commit 6890160375
3 changed files with 9 additions and 4 deletions

View File

@ -72,14 +72,19 @@ module IssuesHelper
issuetype = [] issuetype = []
if value == "缺陷" || value == 1 if value == "缺陷" || value == 1
issuetype << "issues fl" issuetype << "issues fl"
elsif value == "功能" || value == 2 issuetype << "缺陷"
elsif value == "任务" || value == 4
issuetype << "duty fl" issuetype << "duty fl"
issuetype << "任务"
elsif value == "支持" || value == 3 elsif value == "支持" || value == 3
issuetype << "support fl" issuetype << "support fl"
elsif value == "任务" || value == 4 issuetype << "支持"
elsif value == "功能" || value == 2
issuetype << "function fl" issuetype << "function fl"
issuetype << "功能"
else else
issuetype << "weekly fl" issuetype << "weekly fl"
issuetype << "周报"
end end
end end

View File

@ -7,7 +7,7 @@
<div class="problem_main"> <div class="problem_main">
<% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %> <% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %>
<% unless issue.author.nil? || issue.author.name == "Anonymous" %> <% unless issue.author.nil? || issue.author.name == "Anonymous" %>
<span class ="<%= get_issue_type(column_content[1])[0] %>"></span> <span class ="<%= get_issue_type(column_content[1])[0] %>" title="<%= get_issue_type(column_content[1])[1] %>"></span>
<div class="problem_txt fl"> <div class="problem_txt fl">
<%= link_to issue.author.name, user_path(issue.author), :class => "problem_name c_orange 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> <span class="fl"><%= l(:label_post_on_issue) %>(<%= "#{raw column_content[2]}" %>)</span>

View File

@ -14,7 +14,7 @@
</div> </div>
<div class="talk_txt fl"> <div class="talk_txt fl">
<p class="pro_page_tit" style="word-break:break-all;"> <p class="pro_page_tit" style="word-break:break-all;">
<span class='<%= "#{get_issue_type(@issue.tracker_id)[0]} fl" %>'><%= get_issue_type(@issue.tracker_id)[1] %></span> <span class='<%= "#{get_issue_type(@issue.tracker_id)[0]} fl" %>' title="<%= get_issue_type(@issue.tracker_id)[1] %>"></span>
<span style="padding-left: 5px;"><%= @issue.subject %></span> <span style="padding-left: 5px;"><%= @issue.subject %></span>
<span class='<%= "#{get_issue_priority(@issue.priority_id)[0]} " %>'><%= get_issue_priority(@issue.priority_id)[1] %></span> <span class='<%= "#{get_issue_priority(@issue.priority_id)[0]} " %>'><%= get_issue_priority(@issue.priority_id)[1] %></span>
</p><br/> </p><br/>