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

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-01-06 21:11:20 +08:00
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
<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>
2014-01-03 22:18:22 +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%>
2014-01-03 22:18:22 +08:00
<p>
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= @bid.budget%></span></strong>
</p>
<% else %>
<% end %>
2014-01-03 22:18:22 +08:00
<div class="bid_description">
2014-04-11 10:56:55 +08:00
<%= textilizable(@bid, :description) %>
2014-01-03 22:18:22 +08:00
<% if @bid.attachments.any?%>
<% options = {:author => true} %>
2014-01-03 22:18:22 +08:00
<%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %>
2013-09-13 21:52:24 +08:00
<% end %>
2014-01-03 22:18:22 +08:00
</div>
</span>
</div>
2014-01-03 22:18:22 +08:00
<div style="clear: both;"></div>
2013-08-01 10:33:49 +08:00
<div id="history">
2014-01-03 22:18:22 +08:00
<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
2013-08-01 10:33:49 +08:00
</div>
2013-08-15 09:54:08 +08:00
<div class="pagination" style="float:left;">
<ul>
<%= pagination_links_full @feedback_pages %>
</ul>
</div>