diff --git a/app/controllers/words_controller.rb b/app/controllers/words_controller.rb index e58b1d67..bde91fcf 100644 --- a/app/controllers/words_controller.rb +++ b/app/controllers/words_controller.rb @@ -13,6 +13,9 @@ class WordsController < ApplicationController refer_user_id = params[:new_form][:reference_user_id].to_i @user.add_jour(User.current, message, refer_user_id) + unless refer_user_id == 0 + User.find(refer_user_id).add_jour(User.current, message, refer_user_id) + end @user.count_new_jour # if a_message.size > 5 # @message = a_message[-5, 5] diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 7807be1a..808bb2ab 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -128,42 +128,7 @@
<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:project_module_documents),project_documents_path(@project) %> | -<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:project_module_wiki),project_wiki_path(@project) %> | -
<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:project_module_calendar),project_calendar_path(@project) %> - | -<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:project_module_gantt) ,project_gantt_path(@project) %> - | -
<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:label_roadmap) ,project_roadmap_path(@project) %> - | -<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:project_module_files) ,project_files_path(@project) %> - | -
<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:label_module_share) ,share_show_path(@project) %> - | -<%=image_tag("/images/sidebar/tool_tag.png", weight:"15px", height:"15px") %> - <%= link_to l(:label_project_tool_response) ,project_feedback_path(@project) %> - | -
- <%= h journal.notes%> + <%= textilizable journal.notes%>