57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
|
<%= content_for(:header_tags) do %>
|
||
|
<%= import_ke(enable_at: false, prettify: false) %>
|
||
|
<%= javascript_include_tag "init_activity_KindEditor" %>
|
||
|
<% end %>
|
||
|
|
||
|
<style type="text/css">
|
||
|
/*回复框*/
|
||
|
.homepagePostReplyInputContainer .ke-toolbar {display: none; width: 400px; border: none; background: none; padding: 0px 0px;}
|
||
|
.homepagePostReplyInputContainer .ke-toolbar-icon {line-height: 26px; font-size: 14px; padding-left: 26px;}
|
||
|
.homepagePostReplyInputContainer .ke-toolbar-icon-url {background-image: url(/images/public_icon.png)}
|
||
|
.homepagePostReplyInputContainer .ke-outline {padding: 0px 0px; line-height: 26px; font-size: 14px;}
|
||
|
.homepagePostReplyInputContainer .ke-icon-emoticons {background-position: 0px -671px; width: 50px; height: 26px;}
|
||
|
.homepagePostReplyInputContainer .ke-icon-emoticons:hover {background-position: -79px -671px; width: 50px; height: 26px;}
|
||
|
.homepagePostReplyInputContainer .ke-outline {border: none;}
|
||
|
.homepagePostReplyInputContainer .ke-inline-block {display: none;}
|
||
|
.homepagePostReplyInputContainer .ke-container {float: left;}
|
||
|
</style>
|
||
|
<% if newss%>
|
||
|
<% newss.each do |news| %>
|
||
|
<script>
|
||
|
function expand_reply(container, btnid) {
|
||
|
var target = $(container);
|
||
|
var btn = $(btnid);
|
||
|
if (btn.data('init') == '0') {
|
||
|
btn.data('init', 1);
|
||
|
btn.html('收起回复');
|
||
|
target.show();
|
||
|
} else {
|
||
|
btn.data('init', 0);
|
||
|
btn.html('展开更多');
|
||
|
target.hide();
|
||
|
target.eq(0).show();
|
||
|
target.eq(1).show();
|
||
|
target.eq(2).show();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function expand_reply_input(id) {
|
||
|
$(id).toggle();
|
||
|
}
|
||
|
|
||
|
$(function () {
|
||
|
init_activity_KindEditor_data(<%= news.id%>, null, "87%");
|
||
|
showNormalImage('activity_description_<%= news.id %>');
|
||
|
});
|
||
|
</script>
|
||
|
<% if news %>
|
||
|
<%= render :partial => 'users/course_news', :locals => {:activity => news, :user_activity_id => news.id} %>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
|
||
|
<% if newss.count == 10 %>
|
||
|
<%= link_to "点击展开更多",news_index_path(:course_id => @course.id ,:page => page),:id => "show_more_course_news",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||
|
<% end %>
|
||
|
<% end%>
|
||
|
|