diff --git a/app/views/files/_newfile_index.html.erb b/app/views/files/_newfile_index.html.erb
deleted file mode 100644
index 5ffaacae4..000000000
--- a/app/views/files/_newfile_index.html.erb
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
- <% if @isproject %>
- <%= render :partial => 'project_file', locals: {project: @project} %>
- <% else %>
- <%= render :partial => 'course_file', locals: {course: @course} %>
- <% end %>
-
-
-
-
-
-
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 39bc8b52e..4b6df47cb 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -1 +1,249 @@
-<%= render :partial => 'files/newfile_index' %>
\ No newline at end of file
+
+ <% if @isproject %>
+ <%= render :partial => 'project_file', locals: {project: @project} %>
+ <% else %>
+ <%= render :partial => 'course_file', locals: {course: @course} %>
+ <% end %>
+
+
+
+
+
+
diff --git a/app/views/files/index.js.erb b/app/views/files/index.js.erb
deleted file mode 100644
index 59bc2407f..000000000
--- a/app/views/files/index.js.erb
+++ /dev/null
@@ -1,2 +0,0 @@
-alert("eeee");
-$('#content').html('<%= escape_javascript(render :partial => 'issues/newissue_index') %>');
diff --git a/app/views/issues/_newissue_index.html.erb b/app/views/issues/_newissue_index.html.erb
index f0b7c0108..b89ba41a2 100644
--- a/app/views/issues/_newissue_index.html.erb
+++ b/app/views/issues/_newissue_index.html.erb
@@ -4,13 +4,15 @@
<% if @project.enabled_modules.where("name = 'issue_tracking'").count > 0 %>
- <%= link_to l(:label_issue_new), {:controller => 'issues', :action => 'new', :copy_from => nil}, :param => :project_id, :caption => :label_issue_new,
+ <% if User.current.member_of?(@project) %>
+ <%= link_to l(:label_issue_new), {:controller => 'issues', :action => 'new', :copy_from => nil}, :param => :project_id, :caption => :label_issue_new,
:html => {:accesskey => Redmine::AccessKeys.key_for(:new_issue)}, :class => 'icon icon-add' %>
+ <% end %>
<%= link_to l(:label_query), '#', :class => 'icon icon-help',
:onclick => '$("#custom_query").slideToggle(400); ' if true || User.current.logged? %>
<% end %>
- 问题总数:100 未解决:20
+ 问题总数:<%= @project.issues.count %> 未解决:<%= @project.issues.where('status_id in (1,2,4,6)').count %>
<% if !@query.new_record? && @query.editable_by?(User.current) %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index fb8296f64..69abf79a6 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -1,5 +1,5 @@
-
问题跟踪
+ <%= l(:label_issue_plural) %>
<%# html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
<% html_title "#{@issue.tracker.name} #{@issue.source_from}'#'#{@issue.project_index}: #{@issue.subject}" %>
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb
index 2bc86d1ca..f7e4a2132 100644
--- a/app/views/layouts/base_projects.html.erb
+++ b/app/views/layouts/base_projects.html.erb
@@ -103,7 +103,11 @@
- 私有
+ 私有
+ <% end %>
+
<% if @project.project_type == 0 %>
@@ -129,9 +133,7 @@
邀请Trustie注册用户
- <%= link_to "动态", {:controller => 'projects', :action => 'show', :id => @project.id},
- :remote => "true",
- :style => "color:#3CA5C6" %>
+ <%= link_to "动态", {:controller => 'projects', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
<%= link_to "问题跟踪", project_issues_path(@project), :style => "color:#3CA5C6" %>(<%= @project.issues.count %>)
@@ -144,7 +146,7 @@
<%= link_to "讨论区", project_boards_path(@project), :style => "color:#3CA5C6" %>
(<%= @project.boards.first.topics.count %>)
<% if User.current.logged? && User.current.member_of?(@project) %>
- <%= link_to "+发贴", new_board_message_path(@project.boards.first, @project), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
+ <%= link_to "+发贴", new_board_message_path(@project.boards.first), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
<% end %>
diff --git a/app/views/memos/new.html.erb b/app/views/memos/new.html.erb
index 03a60044a..8bcb77a57 100644
--- a/app/views/memos/new.html.erb
+++ b/app/views/memos/new.html.erb
@@ -5,7 +5,7 @@
<% @nav_dispaly_forum_label = 1%>
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
-
+
软件项目托管社区 |
@@ -19,7 +19,7 @@
<%= link_to request.host()+"/forums", forums_path %> |
<%=link_to l(:label_home),home_path %> > <%=link_to '公共贴吧', :controller => 'forums', :action => 'index' %> > <%=link_to @forum.name %> |
-
+
<%=l(:label_memo_new)%>
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 15c1338a2..0e4aca073 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -1,3 +1,6 @@
+
+
<%= l(:label_activity) %>
+
<%= javascript_include_tag "jquery.infinitescroll.js" %>