2013-08-01 10:33:49 +08:00
|
|
|
<!-- added by fq -->
|
2013-08-01 20:47:00 +08:00
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<tr>
|
2013-08-15 09:54:08 +08:00
|
|
|
<td class="font_lighter" style="font-size: 18px;"><%=l(:label_user_response)%></td>
|
2013-08-01 20:47:00 +08:00
|
|
|
</tr></table>
|
2013-08-05 22:47:01 +08:00
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
|
2013-08-05 22:47:01 +08:00
|
|
|
<div id='leave-message'>
|
|
|
|
<%= render :partial => 'new', :locals => {:bid => @bid, :sta => @state} %>
|
|
|
|
</div>
|
|
|
|
|
2013-08-01 20:47:00 +08:00
|
|
|
|
|
|
|
<% if journals.size >0 %>
|
|
|
|
<% remove_allowed = (User.current.id == journals.first.jour_id) %>
|
|
|
|
<% for journal in journals%>
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(journal.user), :class => "avatar"), user_path(journal.user), :class => "avatar" %></td>
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
<tr>
|
2013-08-12 17:30:31 +08:00
|
|
|
<td colspan="2" valign="top"><strong> <%=link_to journal.user, user_path(journal.user)%></strong> <span class="font_lighter"><%= l(:label_respond_requirement) %></span><%= link_to "##{journal.indice}", respond_path(bid), :class => "journal-link" %> </td>
|
2013-08-01 20:47:00 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description"><%= textilizable journal.notes%></p></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-22 20:26:56 +08:00
|
|
|
<td align="left"><span class="font_lighter">发布于 <%= time_tag(journal.created_on).html_safe %>之前</span></td>
|
2013-08-22 21:54:52 +08:00
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
2013-08-01 20:47:00 +08:00
|
|
|
<td width="200" align="right" class="a"><%= link_to(image_tag('comment.png'), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
2013-08-11 23:44:12 +08:00
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
<%= link_to(image_tag('delete.png'), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm),
|
2013-08-12 20:43:18 +08:00
|
|
|
:remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if remove_allowed || journal.user_id == User.current.id %></td>
|
2013-08-22 21:54:52 +08:00
|
|
|
<% else %>
|
|
|
|
<td width="200" align="right" class="a"><%= link_to(image_tag('comment.png'), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
<% end %>
|
2013-08-01 20:47:00 +08:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|