|
|
@ -11,14 +11,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if journals.size >0 %>
|
|
|
|
<% if journals.size >0 %>
|
|
|
|
<% remove_allowed = (User.current.id == journals.first.jour_id) %>
|
|
|
|
|
|
|
|
<% for journal in journals%>
|
|
|
|
<% for journal in journals%>
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<tr>
|
|
|
|
<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 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">
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<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>
|
|
|
|
<td colspan="2" valign="top"><strong> <%=link_to journal.user, user_path(journal.user)%></strong> <span class="font_lighter"><%= l(:label_respond_requirement) %></span></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description"><%= textilizable journal.notes%></p></td>
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description"><%= textilizable journal.notes%></p></td>
|
|
|
@ -26,17 +26,18 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left"><span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span></td>
|
|
|
|
<td align="left"><span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span></td>
|
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
|
|
|
<td width="200" align="right" class="a"><%= link_to(image_tag('comment.png'), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
<td width="200" align="right" class="a"><%= link_to("引用", {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
: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),
|
|
|
|
<%= link_to("删除", {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm),
|
|
|
|
: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>
|
|
|
|
:remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %></td>
|
|
|
|
<% else %>
|
|
|
|
<% 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,
|
|
|
|
<td width="200" align="right" class="a"><%= link_to("引用", {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="line_under"></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|