From 8b1264c99eb65f02487ecde973931cd41b1a6cf4 Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Thu, 2 Jan 2014 16:07:59 +0800 Subject: [PATCH] replace table with div + css ---- bids/show --- app/views/bids/show.html.erb | 70 +++++++------------ .../stylesheets/application.css | 12 ++++ 2 files changed, 39 insertions(+), 43 deletions(-) diff --git a/app/views/bids/show.html.erb b/app/views/bids/show.html.erb index 22cc1dcd..78ef3a56 100644 --- a/app/views/bids/show.html.erb +++ b/app/views/bids/show.html.erb @@ -1,49 +1,34 @@ - - - - - - - -
<%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%> - - - - +
+ <%= 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 %> +

<% elsif @bid.reward_type == 2%> - - - <% else %> - - <% end %> - - - -

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

<%= l(:label_bids_reward_method) %> - - <%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget%> - <%= l(:label_bids_reward_method) %> - - <%= @bid.budget%> -
<%= @bid.description %> - <% if @bid.attachments.any?%> - <% options = {:author => true} %> - <%= render :partial => 'attachments/links', - :locals => {:attachments => @bid.attachments, :options => options} %> +

+ <%= l(:label_bids_reward_method) %><%= @bid.budget%> +

+ <% else %> <% end %> -
- - - <%= render :partial => "/praise_tread/praise_tread", - :locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%> - -
+

+ <%= @bid.description %> +

+ <% if @bid.attachments.any?%> + <% options = {:author => true} %> + <%= 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 => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
@@ -54,4 +39,3 @@