From 591aa78dcff0f1161289eeedff1bd316bd638b68 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 28 Oct 2014 17:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_history.html.erb | 49 +++++++++++-------- app/views/bids/show.html.erb | 30 +++++++++--- app/views/words/_journal_reply.html.erb | 6 +-- app/views/words/_journal_reply_items.html.erb | 42 +++++++++------- app/views/words/_new_respond.html.erb | 2 +- app/views/words/create_reply.js.erb | 15 +++--- 6 files changed, 87 insertions(+), 57 deletions(-) diff --git a/app/views/bids/_history.html.erb b/app/views/bids/_history.html.erb index 784fb7ff8..8273c4b04 100644 --- a/app/views/bids/_history.html.erb +++ b/app/views/bids/_history.html.erb @@ -1,6 +1,8 @@ <% reply_allow = JournalsForMessage.create_by_user? User.current %> <% tip1 = (@bid.reward_type == 3) ? l(:label_student_response) : l(:label_user_response) %> -
<%=tip1%>
++ <%=tip1%> +
- <%= l(:label_bids_reward_method) %><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget %> + + <%= l(:label_bids_reward_method) %> + + <%= l(:label_call_bonus) %> + + <%= l(:label_RMB_sign) %> + <%= @bid.budget %> + +
<% elsif @bid.reward_type == 2%> -- <%= l(:label_bids_reward_method) %><%= @bid.budget%> -
++ + <%= l(:label_bids_reward_method) %> + + <%= @bid.budget%> + + +
<% else %> <% end %>- <%= link_to reply.user.name, user_path(reply.user) %>: - <%= reply.notes %> + + <%= link_to reply.user.name, user_path(reply.user) %> + : + + + <%= reply.notes %> +
- <%= format_time reply.created_on %> - - <% if reply_allow %> - <%= link_to l(:label_projects_feedback_respond),'', - {:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{m_reply_id.user.name}: '); return false;"} - %> - <% end %> - <% if @user == User.current || User.current.admin? || reply.user.id == User.current.id %> - <%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => reply, :user_id => reply.user}, - :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %> - <% end %> - + + <%= format_time reply.created_on %> + + + <% if reply_allow %> + <%= link_to l(:label_projects_feedback_respond),'', + {:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{m_reply_id.user.name}: '); return false;"} %> + <% end %> + <% if @user == User.current || User.current.admin? || reply.user.id == User.current.id %> + <%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => reply, :user_id => reply.user}, + :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %> + <% end %> +