diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index e3bd0ba91..b7b2cdeed 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -103,6 +103,7 @@ class IssuesController < ApplicationController
end
def show
+
@journals = @issue.journals.includes(:user, :details).reorder("#{Journal.table_name}.id ASC").all
@journals.each_with_index {|j,i| j.indice = i+1}
@journals.reject!(&:private_notes?) unless User.current.allowed_to?(:view_private_notes, @issue.project)
@@ -118,6 +119,10 @@ class IssuesController < ApplicationController
@time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
@project_base_tag = (params[:project_id] || @issue.project)?'base_projects':'base'#by young
+ #by huang
+ # @change_flag = (@issue.author == User.current) || (User.current.admin?)
+
+ #end
respond_to do |format|
format.html {
retrieve_previous_and_next_issue_ids
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index 03367073e..4a4e06935 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -62,8 +62,7 @@ class MyController < ApplicationController
set_language_if_valid @user.language
@user.update_user_extensions()
flash[:notice] = l(:notice_account_updated)
-
- redirect_to my_account_path
+ redirect_to user_path(@user) #modified by huang/ my_account_path
return
end
end
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb
index 4757ebcba..688bb0a81 100644
--- a/app/views/issues/_action_menu.html.erb
+++ b/app/views/issues/_action_menu.html.erb
@@ -1,5 +1,17 @@
+
+
+<% if (@issue.author == User.current) || (User.current.admin?) %>
+
+
<%= link_to l(:button_update), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
+
+<% else %>
+
+<%= link_to l(:label_user_newfeedback), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
+
+<% end %>
+
<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>
<%= watcher_link(@issue, User.current) %>
<%= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:add_issues, @project) %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index ebf6896d8..9bd47d416 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -49,8 +49,10 @@
unless @issue.disabled_core_fields.include?('assigned_to_id')
#modified by nie
- rows.left l(:field_assigned_to), (image_tag url_to_avatar(@issue.author), :class => 'avatar').to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
+ #modified by huang
+ rows.left l(:field_assigned_to), (image_tag url_to_avatar(@issue.assigned_to(@user)), :class => 'avatar').to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
end
+ # end huang
unless @issue.disabled_core_fields.include?('category_id')
rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
end
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 807dc26b1..05e1dfc17 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -14,12 +14,10 @@
- <%= render :partial=> "avatar/avatar_form", :locals=>{source:@user} %>
-
<%= labelled_form_for :user, @user,
- :url => { :action => "account" },
+ :url => {:action => "account" },
:html => { :id => 'my_account_form',
:method => :post } do |f| %>
<%= submit_tag l(:button_save) %>
+
<% end %>
-<% html_title(l(:label_my_account)) -%>
+<% html_title(l(:label_my_account)) %>
diff --git a/public/images/avatars/User/4246 b/public/images/avatars/User/4246
index 757c2a628..65ef363cc 100644
Binary files a/public/images/avatars/User/4246 and b/public/images/avatars/User/4246 differ