From 7a8c9371734f65043601b80638f89f6462f36b6c Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Thu, 1 Dec 2016 17:29:14 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AEissue=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=EF=BC=8C=E8=AE=A8=E8=AE=BA=E5=8C=BA=EF=BC=8C=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=E5=BA=93=EF=BC=8Cpullrequests=EF=BC=8C=E9=87=8C=E7=A8=8B?=
=?UTF-8?q?=E7=A2=91=E5=8F=8A=E5=85=B6=E9=87=8C=E7=A8=8B=E7=A2=91=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=95=B0=E6=8D=AE=E4=B8=BA?=
=?UTF-8?q?=E7=A9=BA=E6=97=B6=EF=BC=8C=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/files/_project_file.html.erb | 4 ++++
app/views/issues/index.html.erb | 8 ++++----
app/views/projects/_no_data.html.erb | 2 +-
app/views/projects/member_forked.html.erb | 2 ++
app/views/projects/project_watcherlist.html.erb | 2 ++
app/views/pull_requests/index.html.erb | 2 ++
app/views/users/_project_boardlist.html.erb | 8 ++++----
app/views/versions/index.html.erb | 10 +++++++---
app/views/versions/show.html.erb | 9 ++++++++-
public/stylesheets/css/project.css | 2 +-
10 files changed, 35 insertions(+), 14 deletions(-)
diff --git a/app/views/files/_project_file.html.erb b/app/views/files/_project_file.html.erb
index 27e9673a7..bd2c427f7 100644
--- a/app/views/files/_project_file.html.erb
+++ b/app/views/files/_project_file.html.erb
@@ -94,6 +94,7 @@
<%= render :partial => "files/tag_yun_project", :locals => {:tag_list => @tag_list,:project => @project, :tag_name => @tag_name}%>
+ <% if @tip_all_attachments > 0 %>
<%= render :partial => "files/tip_attachment_count" %>
@@ -124,5 +125,8 @@
<%= render :partial => 'project_list',:locals => {project: @project, all_attachments: @all_attachments, sort:@sort, order:@order, project_attachments:@obj_attachments} %>
+ <% else %>
+ <%= render :partial => "projects/no_data" %>
+ <% end %>
<%# html_title(l(:label_attachment_plural)) -%>
\ No newline at end of file
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb
index a9f70f999..aa51842aa 100644
--- a/app/views/issues/index.html.erb
+++ b/app/views/issues/index.html.erb
@@ -214,6 +214,9 @@
新建
+ <% if @issues.empty? %>
+ <%= render :partial => "projects/no_data" %>
+ <% else %>
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
<%= form_tag({:controller => 'issues', :action => 'index', :project_id => @project},:remote=>'xls', :method => :get,:id=>"issue_query_form", :class => 'query_form') do %>
<%= hidden_field_tag 'set_filter', '1' %>
@@ -236,7 +239,6 @@
<%= calendar_for('issue_create_date_start_show')%>
-
<% end %>
<% end %>
-<% if @issues.empty? %>
- <%= l(:label_no_data) %>
-<% else %>
+
<%= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %>
diff --git a/app/views/projects/_no_data.html.erb b/app/views/projects/_no_data.html.erb
index 249a67af0..bc8b97547 100644
--- a/app/views/projects/_no_data.html.erb
+++ b/app/views/projects/_no_data.html.erb
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/app/views/projects/member_forked.html.erb b/app/views/projects/member_forked.html.erb
index b3cfad1d4..d5dba7ae2 100644
--- a/app/views/projects/member_forked.html.erb
+++ b/app/views/projects/member_forked.html.erb
@@ -26,5 +26,7 @@
<% else %>
+
<%= render :partial => "projects/no_data" %>
+
<% end %>
diff --git a/app/views/projects/project_watcherlist.html.erb b/app/views/projects/project_watcherlist.html.erb
index c421f4f81..1c97e2855 100644
--- a/app/views/projects/project_watcherlist.html.erb
+++ b/app/views/projects/project_watcherlist.html.erb
@@ -26,7 +26,9 @@
<% else %>
+
<%= render :partial => "projects/no_data" %>
+
<% end %>
diff --git a/app/views/pull_requests/index.html.erb b/app/views/pull_requests/index.html.erb
index f2591b6ea..4053e6739 100644
--- a/app/views/pull_requests/index.html.erb
+++ b/app/views/pull_requests/index.html.erb
@@ -62,6 +62,8 @@
<% else %>
+
<%= render :partial => "projects/no_data" %>
+
<% end %>
diff --git a/app/views/users/_project_boardlist.html.erb b/app/views/users/_project_boardlist.html.erb
index dbc0b3992..c18b003d2 100644
--- a/app/views/users/_project_boardlist.html.erb
+++ b/app/views/users/_project_boardlist.html.erb
@@ -2,6 +2,7 @@
讨论区列表
+ <% if topics.any? %>
排序:
<%= link_to "时间", {:controller => 'boards', :action => 'index', :type => @type, :sort => @b_sort, :order => 1 }, :class => "sortTxt", :remote => true %>
@@ -15,7 +16,6 @@
- <% if topics.any? %>
<% topics.each do |activity| %>
- <% else %>
-
<%= l(:label_no_data) %>
- <% end %>
+ <% else %>
+ <%= render :partial => "projects/no_data" %>
+ <% end %>