2016-01-21 10:33:53 +08:00
|
|
|
<%= content_for(:header_tags) do %>
|
|
|
|
<%= import_ke(enable_at: false, prettify: false) %>
|
2016-02-01 14:50:45 +08:00
|
|
|
<%= javascript_include_tag "create_kindeditor" %>
|
2016-01-21 10:33:53 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if all_news %>
|
|
|
|
<% all_news.each do |news| %>
|
|
|
|
<script>
|
|
|
|
function expand_reply_input(id) {
|
|
|
|
$(id).toggle();
|
|
|
|
}
|
|
|
|
|
|
|
|
$(function () {
|
2016-01-29 16:55:07 +08:00
|
|
|
sd_create_editor_from_data(<%= news.id%>, null, "100%");
|
2016-01-21 10:33:53 +08:00
|
|
|
showNormalImage('activity_description_<%= news.id %>');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<% if news %>
|
|
|
|
<%= render :partial => 'users/project_news', :locals => {:activity => news, :user_activity_id => news.id} %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if all_news.count == 10 %>
|
|
|
|
<%= link_to "点击展开更多",news_index_path(:project_id => @project.id ,:page => page),:id => "show_more_project_news",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
|
|
|
<% end %>
|
|
|
|
<% end%>
|
|
|
|
|