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 @@
- +
<% if @project.project_type == 0 %> @@ -129,9 +133,7 @@
  • 邀请Trustie注册用户