|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
<div class="lz">
|
|
|
|
|
<!-- 在这里添加赞和踩-->
|
|
|
|
|
<span id="praise_tread" style="float: right"> <%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @memo,:show_flag => true,:user_id =>User.current.id,:horizontal => true}%> </span>
|
|
|
|
|
<div class="lz-left">
|
|
|
|
|
<div class="lz-left">
|
|
|
|
|
<div>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(@memo.author), :class => "avatar"), user_path(@memo.author) %>
|
|
|
|
|
</div>
|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
:remote => true,
|
|
|
|
|
:method => 'get',
|
|
|
|
|
:title => l(:button_quote)
|
|
|
|
|
)if !@memo.locked? && User.current.logged? %>
|
|
|
|
|
)if !@memo.locked? && User.current.logged? %>
|
|
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
#image_tag('edit.png'),
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="memo-content" id="memo-content_div">
|
|
|
|
|
<%= textAreailizable(@memo,:content) %>
|
|
|
|
|
<p>
|
|
|
|
|
<p>
|
|
|
|
|
<% if @memo.attachments.any?%>
|
|
|
|
|
<% options = {:author => true, :deletable => @memo.deleted_attach_able_by?(User.current) } %>
|
|
|
|
|
<%= render :partial => 'attachments/links', :locals => {:attachments => @memo.attachments, :options => options, :is_float => true} %>
|
|
|
|
@ -100,7 +100,7 @@
|
|
|
|
|
:method => 'get',
|
|
|
|
|
:title => l(:button_quote)
|
|
|
|
|
)if !@memo.locked? && User.current.logged? %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
#image_tag('edit.png'),
|
|
|
|
|
l(:button_edit),
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
:method => :delete,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
) if reply.destroyable_by?(User.current) %>
|
|
|
|
|
) if reply.destroyable_by?(User.current) %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<br/>
|
|
|
|
@ -146,7 +146,7 @@
|
|
|
|
|
<%= authoring reply.created_at, reply.author %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|