From d23b196eaae8cbe3f5bc91353f8061bcbcfd9c19 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 3 Jan 2014 22:18:22 +0800 Subject: [PATCH] zz --- app/views/bids/show.html.erb | 42 +++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/app/views/bids/show.html.erb b/app/views/bids/show.html.erb index 78ef3a56..aec3bb7e 100644 --- a/app/views/bids/show.html.erb +++ b/app/views/bids/show.html.erb @@ -2,40 +2,38 @@ <%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%>

<%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:<%= @bid.name %>

- <% if @bid.reward_type.nil? or @bid.reward_type == 1%> -

- <%= l(:label_bids_reward_method) %><%= l(:label_call_bonus) %>  - <%= l(:label_RMB_sign) %><%= @bid.budget %> -

+ <% if @bid.reward_type.nil? or @bid.reward_type == 1%> +

+ <%= 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 %> -

+

<%= @bid.description %> -

- <% if @bid.attachments.any?%> + <% if @bid.attachments.any?%> <% options = {:author => true} %> - <%= render :partial => 'attachments/links', - :locals => {:attachments => @bid.attachments, :options => options} %> + <%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %> <% end %> - - <%= render :partial => "/praise_tread/praise_tread", - :locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%> - - -
+
+ + <%= render :partial => "/praise_tread/praise_tread", + :locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%> + +
+
-<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %> + <%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
+