diff --git a/app/models/journal_observer.rb b/app/models/journal_observer.rb index cdd23bc7c..5e04e601f 100644 --- a/app/models/journal_observer.rb +++ b/app/models/journal_observer.rb @@ -24,9 +24,9 @@ class JournalObserver < ActiveRecord::Observer (Setting.notified_events.include?('issue_priority_updated') && journal.new_value_for('priority_id').present?) ) ##by senluo - thread4=Thread.new do + # thread4=Thread.new do Mailer.issue_edit(journal).deliver - end + # end end end end diff --git a/app/models/journals_for_message_observer.rb b/app/models/journals_for_message_observer.rb index f0dce08c2..8a8589c99 100644 --- a/app/models/journals_for_message_observer.rb +++ b/app/models/journals_for_message_observer.rb @@ -1,7 +1,9 @@ # Added by young class JournalsForMessageObserver < ActiveRecord::Observer def after_create(journals_for_message) + thread4=Thread.new do Mailer.journals_for_message_add(User.current, journals_for_message).deliver + end end end diff --git a/app/models/mailer.rb b/app/models/mailer.rb index cf8e0f368..b96e46a24 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -31,7 +31,7 @@ class Mailer < ActionMailer::Base # def journals_for_message_add(user, journals_for_message) @user = User.current - if journals_for_message.jour_type!="Project" + if journals_for_message.jour_type!="Project"&&journals_for_message.jour_type!="Bid" @mail = journals_for_message.jour diff --git a/app/views/bids/_bid_homework_show.html.erb b/app/views/bids/_bid_homework_show.html.erb index 2c347fa64..1f583ffea 100644 --- a/app/views/bids/_bid_homework_show.html.erb +++ b/app/views/bids/_bid_homework_show.html.erb @@ -40,8 +40,10 @@ <% else %> <% if betweentime(bid.deadline) < 3 %> <%= l(:label_commit_ar) %> - <% else %> - <% end %> + <% else %> + <% end %> + + <% end %> diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index 33b296bfb..8db091278 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -118,28 +118,29 @@
<%= l(:label_user_joinin) %> | <%= format_time(@user.created_on) %> | +<%= l(:label_user_joinin) %>: | <%= format_time(@user.created_on) %> |
<%= l(:label_user_login) %> | <%= format_time(@user.last_login_on) %> | +<%= l(:label_user_login) %>: | <%= format_time(@user.last_login_on) %> |
<%= l(:label_user_mail) %> | <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %> | +<%= l(:label_user_mail) %>: | <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %> |
<%= l(:field_occupation) %>: | <%= @user.user_extensions.occupation %> | +<%= l(:field_occupation) %>: | <%= @user.user_extensions.occupation %> |
<%= l(:label_location) %>: | <%= @user.user_extensions.location %><%= @user.user_extensions.location_city %> | +<%= l(:label_location) %>: | <%= @user.user_extensions.location %><%= @user.user_extensions.location_city %> |
<% if @user.user_extensions.identity == 0 %> + | <% if @user.user_extensions.identity == 0 %> <%= l(:label_technical_title) %>: | <%= @user.user_extensions.technical_title %> | <% end %>