socialforge/app/views/bids/show.html.erb

42 lines
1.4 KiB
Plaintext
Raw Normal View History

<div style="margin-left: 20px;">
<span class="portrait"><%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%></span>
<span class="body">
<h3><%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%><%= @bid.name %></h3>
2013-08-20 16:32:45 +08:00
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
<p>
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= l(:label_call_bonus) %>&nbsp;
<%= l(:label_RMB_sign) %><%= @bid.budget %></span></strong>
</p>
2013-11-13 10:19:47 +08:00
<% elsif @bid.reward_type == 2%>
<p>
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= @bid.budget%></span></strong>
</p>
<% else %>
<% end %>
<p class="bid_description">
<%= @bid.description %>
</p>
2013-09-13 21:52:24 +08:00
<% if @bid.attachments.any?%>
<% options = {:author => true} %>
<%= render :partial => 'attachments/links',
:locals => {:attachments => @bid.attachments, :options => options} %>
2013-09-13 21:52:24 +08:00
<% end %>
<span id="praise_tread" style="float: right">
<%= render :partial => "/praise_tread/praise_tread",
:locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%>
</span>
</span>
<div style="clear: both;"></div>
</div>
2013-08-01 10:33:49 +08:00
<div id="history">
<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
</div>
2013-08-15 09:54:08 +08:00
<div class="pagination" style="float:left;">
<ul>
<%= pagination_links_full @feedback_pages %>
2013-09-23 20:12:32 +08:00
<ul>
2013-08-15 09:54:08 +08:00
</div>