2014-10-23 11:30:34 +08:00
|
|
|
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
|
<div style="margin-left: 20px;">
|
2014-10-28 17:22:35 +08:00
|
|
|
|
<span class="portrait">
|
|
|
|
|
<%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%>
|
|
|
|
|
</span>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
<span class="body" style="word-break: break-all;word-wrap: break-word;">
|
2014-10-28 17:22:35 +08:00
|
|
|
|
<h3>
|
|
|
|
|
<%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:
|
|
|
|
|
<%= link_to(@bid.name,respond_path(@bid)) %>
|
|
|
|
|
</h3>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
|
|
|
|
<p>
|
2014-10-28 17:22:35 +08:00
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_bids_reward_method) %>
|
|
|
|
|
<span class="bonus">
|
|
|
|
|
<%= l(:label_call_bonus) %>
|
|
|
|
|
|
|
|
|
|
<%= l(:label_RMB_sign) %>
|
|
|
|
|
<%= @bid.budget %>
|
|
|
|
|
</span>
|
|
|
|
|
</strong>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
</p>
|
|
|
|
|
<% elsif @bid.reward_type == 2%>
|
2014-10-28 17:22:35 +08:00
|
|
|
|
<p>
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_bids_reward_method) %>
|
|
|
|
|
<span class="bonus">
|
|
|
|
|
<%= @bid.budget%>
|
|
|
|
|
</span>
|
|
|
|
|
</strong>
|
|
|
|
|
</p>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
<% else %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="bid_description">
|
|
|
|
|
<%= textilizable(@bid, :description) %>
|
|
|
|
|
<% if @bid.attachments.any?%>
|
|
|
|
|
<% options = {:author => true,:deletable => (@bid.author.id == User.current.id || User.current.admin? ? true : false)} %>
|
|
|
|
|
<%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
|
|
|
|
|
<div id="history">
|
|
|
|
|
<%= render :partial => 'history', :locals => { :bid => @bid, :journals => @jour, :state => false} %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pagination" style="float:left;">
|
|
|
|
|
<ul>
|
|
|
|
|
<%= pagination_links_full @feedback_pages %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|