diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 41b9201ba..7e549509b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -339,11 +339,8 @@ class ProjectsController < ApplicationController end # 邀请Trustie注册用户 - def invite_members_had_loged + def invite_members @member ||= @project.members.new - respond_to do |format| - format.js - end end def edit diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index f47ced545..971bf603d 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -31,7 +31,7 @@ module WatchersHelper watched = objects.any? {|object| object.watched_by?(user)} @watch_flag = (objects.first.instance_of?(User) or objects.first.instance_of?(Project) or objects.first.instance_of?(Contest) or (objects.first.instance_of?(Bid))) - css = @watch_flag ? ([watcher_css(objects), watched ? 'icon ' : 'icon '].join(' ') << options[0].to_s) : + css = @watch_flag ? ([watcher_css(objects), watched ? 'icon ' : 'icon '].join(' ') << options[0].to_s) : ([watcher_css(objects), watched ? 'icon icon-fav ' : 'icon icon-fav-off '].join(' ') << options[0].to_s) text = @watch_flag ? @@ -283,6 +283,6 @@ module WatchersHelper def exit_project_link(project) link_to(l(:label_exit_project),exit_cur_project_path(project.id), - :remote => true, :confirm => l(:lable_sure_exit_project), :style => "color: #fff; display:block; padding: 0px 5px;margin-right:10px;height:20px;text-aligh:center;" ) + :remote => true, :confirm => l(:lable_sure_exit_project), :style => "color: #fff; display:block; padding: 0px 5px;margin-right:10px;height:22px;background:none repeat scroll 0% 0% #64BDD9;TES" ) end end 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..40f13a2f8 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 %> @@ -125,13 +129,11 @@