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>
|
|
|
|
<td class="font_lighter" style="font-size: 18px;"><%=l(:label_user_response)%>(<%= journals.count%>)</td>
|
|
|
|
<td><% if journals.size > 5 %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% unless state%>
|
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to l(:button_more),
|
|
|
|
{:controller => 'bids', :action => 'more', :bid_id => bid},
|
|
|
|
:remote => true,
|
|
|
|
:method => 'get' %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to l(:button_back),
|
|
|
|
{:controller => 'bids', :action => 'back', :bid_id => bid},
|
|
|
|
:remote => true,
|
|
|
|
:method => 'get' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-01 20:47:00 +08:00
|
|
|
<% end %><td>
|
|
|
|
</tr></table>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% unless state%>
|
|
|
|
<% if journals.size > 5 %>
|
|
|
|
<% journals = journals[0, 5] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
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>
|
|
|
|
<td colspan="2" valign="top"><strong> <%=link_to journal.user, user_path(journal.user)%></strong> <a class="font_lighter">对需求进行了反馈</a><%= link_to "##{journal.indice}", {}, :class => "journal-link" %> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description"><%= textilizable journal.notes%></p></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left"><a class="font_lighter"> <%= journal.created_at %></a></td>
|
|
|
|
<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))%><%= link_to(image_tag('delete.png'), {:controller => 'bids', :action => 'destroy', :object_id => journal, :bid_id => bid},
|
|
|
|
:remote => true, :method => 'delete', :class => "delete", :title => l(:button_delete)) if remove_allowed || journal.user_id == User.current.id %></td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|