From f77ecf71f160bf1cfcd096b4ebb39bc73b89e13e Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Thu, 2 Jan 2014 15:21:03 +0800 Subject: [PATCH] mpdified project and contest message --- app/views/bids/_history.html.erb | 85 +++++++++++++------------------- 1 file changed, 35 insertions(+), 50 deletions(-) diff --git a/app/views/bids/_history.html.erb b/app/views/bids/_history.html.erb index 2f627fa1d..913c9e269 100644 --- a/app/views/bids/_history.html.erb +++ b/app/views/bids/_history.html.erb @@ -1,20 +1,12 @@ - - <% else %> <% end %> -
- <% if @bid.reward_type ==3 %> <%=l(:label_student_response)%><%=l(:label_user_response)%>
@@ -24,46 +16,39 @@ <% if journals.size >0 %> - -<% for journal in journals%> - - - - - -
<%= image_tag(url_to_avatar(journal.user), :class => "avatar") %> - - <% label = ''; - case @bid.reward_type - when 1 - label = l(:label_respond_requirement) - when 2 - label = l(:label_contest_requirement) - when 3 - label = l(:label_question_requirement) - else - - end - %> - - - - - - - - - <% if @user==User.current|| User.current.admin? %> - - <% else %> - -
<%=link_to journal.user, user_path(journal.user)%> <%= label %>

<%= textilizable journal.notes%>

<%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %><%= link_to(l(:label_bid_respond_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true, - :method => 'post', :title => l(:button_quote))%> - <%= link_to(l(:label_bid_respond_delete), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm), - :remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %><%= link_to(l(:label_bid_respond_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true, - :method => 'post', :title => l(:button_quote))%> - <% end %> -
-
-<% end %> + <% end %>