diff --git a/app/views/issues/_all_list.html.erb b/app/views/issues/_all_list.html.erb new file mode 100644 index 000000000..afd630b2c --- /dev/null +++ b/app/views/issues/_all_list.html.erb @@ -0,0 +1,16 @@ +<% issue_list(issues) do |issue, level| -%> + + <%= render :partial => 'issues/project_issue', :locals => {:activity => issue, :user_activity_id => issue.id} %> +<% end %> +
+
+ +
+
+
diff --git a/app/views/issues/_project_issue.html.erb b/app/views/issues/_project_issue.html.erb new file mode 100644 index 000000000..683b512f0 --- /dev/null +++ b/app/views/issues/_project_issue.html.erb @@ -0,0 +1,36 @@ +<% unless activity.author.nil? %> +
+
+ <% if activity.status_id.to_i == 5 %> + + <% else %> + + <% end %> +
+
+ +
+ <% if activity.try(:author).try(:realname) == ' ' %> + <%= link_to activity.try(:author), user_path(activity.author_id), :class => "fl issues_list_name" %> + <% else %> + <%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "fl issues_list_name" %> + <% end %> +

2016-05-15发布

+
+
+ +
+<% end %> + diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index c704f9847..13ea19882 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -1,8 +1,201 @@ + + + + + 缺陷列表及头部 + + + + + + +
+
+
+ +
+
+ +

邀请码
Y7AUZ

+
+
+

尹刚/Trustie Forge

私有 +
+

+ 项目评分:123 + 浏览:123 + 关注:123 + 成员:123 +

+
+ 关注 +
+
+
+
+ + + +
+ + +
+ +
+ + 清除 +
+ + +
+
+ + +
+ +
+
+ + <%= select( :issue, :user_id, principals_options_for_isuue_list(@project), + { :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0 + }, + {:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"fl"} + ) + %> + + <%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]), + { :include_blank => false,:selected=>@status_id ? @status_id : 0 + }, + {:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"fl issues_filter_select_min"} + ) + %> + + +
+
+
+
+ <%= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %> +
+ +
+ ddd + +
+
+ + ddd +
+
+ +
+ +
+ + + + + + + + + + + + + <%= content_for(:header_tags) do %> <%= import_ke(enable_at: true,init_activity: true) %> <% end %>