|
|
@ -30,6 +30,14 @@
|
|
|
|
$(function() {
|
|
|
|
$(function() {
|
|
|
|
init_activity_KindEditor_data(<%= @memo.id%>,null,"87%");
|
|
|
|
init_activity_KindEditor_data(<%= @memo.id%>,null,"87%");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function del_confirm(){
|
|
|
|
|
|
|
|
if(confirm('确认删除么?')){
|
|
|
|
|
|
|
|
$("#del_link").click();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<div class="postRightContainer">
|
|
|
|
<div class="postRightContainer">
|
|
|
|
<div class="postThemeContainer">
|
|
|
|
<div class="postThemeContainer">
|
|
|
@ -43,24 +51,25 @@
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
<li><a href="<%= edit_forum_memo_path(@memo.forum,@memo)%>" class="postOptionLink">编辑</a></li>
|
|
|
|
<li><a href="<%= edit_forum_memo_path(@memo.forum,@memo)%>" class="postOptionLink">编辑</a></li>
|
|
|
|
<li><a href="<%= forum_memo_path(@memo.forum,@memo) %>" data-method="delete" class="postOptionLink">删除</a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="postOptionLink" onclick="del_confirm();">删除</a></li>
|
|
|
|
|
|
|
|
<li style="display: none"><a href="<%= forum_memo_path(@memo.forum,@memo) %>" data-method="delete" id="del_link" ></a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%end%>
|
|
|
|
<%end%>
|
|
|
|
<div class="postDetailTitle"><a href="javascript:void(0);" class="f14 linkGrey4 fb">主题: <%= @memo.subject%></a></div>
|
|
|
|
<div class="postDetailTitle"><a href="javascript:void(0);" class="f14 linkGrey4 fb" style="word-break: break-all; word-wrap:break-word;white-space:pre-wrap;">主题: <%= @memo.subject%></a></div>
|
|
|
|
<div class="postDetailCreater"><a href="javascript:void(0);" class="linkBlue2" target="_blank"><%= @memo.author.name%></a></div>
|
|
|
|
<div class="postDetailCreater"><a href="javascript:void(0);" class="linkBlue2" target="_blank"><%= @memo.author.name%></a></div>
|
|
|
|
<div class="postDetailDate mb5"><%= format_date( @memo.created_at)%></div>
|
|
|
|
<div class="postDetailDate mb5"><%= format_date( @memo.created_at)%></div>
|
|
|
|
<span id="praise_tread" style="float: right">
|
|
|
|
<span id="praise_tread" style="float: right">
|
|
|
|
<%= render :partial => "memos/praise_tread",:locals => {:obj => @memo,:show_flag => true,:user_id =>User.current.id,:horizontal => true}%>
|
|
|
|
<%= render :partial => "memos/praise_tread",:locals => {:obj => @memo,:show_flag => true,:user_id =>User.current.id,:horizontal => true}%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="memo-content" >
|
|
|
|
<div class="memo-content" style="word-break: break-all; word-wrap:break-word;white-space:pre-wrap;margin-bottom: 0px !important;" >
|
|
|
|
<%= @memo.content.html_safe%>
|
|
|
|
<%= @memo.content.html_safe%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="mt10 fl">
|
|
|
|
<div class=" fl">
|
|
|
|
<% if @memo.attachments.any?%>
|
|
|
|
<% if @memo.attachments.any?%>
|
|
|
|
<% options = {:author => true, :deletable => @memo.deleted_attach_able_by?(User.current) } %>
|
|
|
|
<% options = {:author => true, :deletable => @memo.deleted_attach_able_by?(User.current) } %>
|
|
|
|
<%= render :partial => 'attachments_links', :locals => {:attachments => @memo.attachments, :options => options, :is_float => true} %>
|
|
|
|
<%= render :partial => 'attachments_links', :locals => {:attachments => @memo.attachments, :options => options, :is_float => true} %>
|
|
|
|