replace table with div + css ---- bids/show
This commit is contained in:
parent
2c1e53bfec
commit
8b1264c99e
|
@ -1,49 +1,34 @@
|
||||||
<!-- fq -->
|
<div style="margin-left: 20px;">
|
||||||
<table width="660px" border="0" align="center">
|
<span class="portrait"><%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%></span>
|
||||||
<tr>
|
<span class="body">
|
||||||
<td width="50" valign="top"><%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%></td>
|
<h3><%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:<%= @bid.name %></h3>
|
||||||
<td><table width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td><h3><%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:<%= @bid.name %></h3></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
||||||
|
<p>
|
||||||
<td><strong><%= l(:label_bids_reward_method) %>
|
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= l(:label_call_bonus) %>
|
||||||
<span style="color: #ed8924;font-family: 14px; font-family: 微软雅黑">
|
<%= l(:label_RMB_sign) %><%= @bid.budget %></span></strong>
|
||||||
<%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget%>
|
</p>
|
||||||
</span></strong></td>
|
|
||||||
<% elsif @bid.reward_type == 2%>
|
<% elsif @bid.reward_type == 2%>
|
||||||
|
<p>
|
||||||
<td><strong><%= l(:label_bids_reward_method) %>
|
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= @bid.budget%></span></strong>
|
||||||
<span style="color: #15bccf;font-family: 14px; font-family: 微软雅黑">
|
</p>
|
||||||
<%= @bid.budget%>
|
|
||||||
</span></strong></td>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<!-- <td><strong><%= l(:label_bids_reward_method) %><span style="color: #00aa83;font-family: 14px; font-family: 微软雅黑">
|
|
||||||
<%= l(:label_bids_credit) %> <%= @bid.budget%> <%= l(:label_bids_credit_number) %></span></strong></td> -->
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
<p class="bid_description">
|
||||||
<!--modified by baiyu-->
|
<%= @bid.description %>
|
||||||
<tr><td style="font-size: 13px; color: rgb(0,0,0);"><%= @bid.description %>
|
</p>
|
||||||
<% if @bid.attachments.any?%>
|
<% if @bid.attachments.any?%>
|
||||||
<% options = {:author => true} %>
|
<% options = {:author => true} %>
|
||||||
<%= render :partial => 'attachments/links',
|
<%= render :partial => 'attachments/links',
|
||||||
:locals => {:attachments => @bid.attachments, :options => options} %>
|
:locals => {:attachments => @bid.attachments, :options => options} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td></tr>
|
|
||||||
</table></td>
|
|
||||||
<td>
|
|
||||||
<!-- 在这里添加赞和踩-->
|
|
||||||
<span id="praise_tread" style="float: right">
|
<span id="praise_tread" style="float: right">
|
||||||
<%= render :partial => "/praise_tread/praise_tread",
|
<%= render :partial => "/praise_tread/praise_tread",
|
||||||
:locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%>
|
:locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</span>
|
||||||
</tr>
|
<div style="clear: both;"></div>
|
||||||
</table>
|
</div>
|
||||||
|
|
||||||
<!-- 这里是用户的反馈输入框 -->
|
|
||||||
<div id="history">
|
<div id="history">
|
||||||
<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
|
<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,4 +39,3 @@
|
||||||
<ul>
|
<ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- end -->
|
|
||||||
|
|
|
@ -2156,3 +2156,15 @@ ul.messages-for-user-reply li {
|
||||||
.toomuch {
|
.toomuch {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bonus {
|
||||||
|
color: #ed8924;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bid_description {
|
||||||
|
width: 90%;
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
Loading…
Reference in New Issue