diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index ef16d0c23..6cd7f75c5 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -71,7 +71,9 @@ $(function () { init_activity_KindEditor_data(<%= topic.id%>, null, "87%"); - var description_images=$("div#activity_description_<%= topic.id %>").find("img"); + showNormalImage('activity_description_<%= topic.id %>'); + //showNormalImage('reply_content_<%#= topic.id %>'); + /*var description_images=$("div#activity_description_<%#= topic.id %>").find("img"); if (description_images.length>0) { for (var i=0; i a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); + $('#activity_description_<%#= topic.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); - var reply_images=$("div#reply_content_<%= topic.id %>").find("img"); + var reply_images=$("div#reply_content_<%#= topic.id %>").find("img"); if (reply_images.length>0) { for (var i=0; i a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); + $('#reply_content_<%#= topic.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false});*/ }); <% if topic %> diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb index 1611bc725..8f6af1021 100644 --- a/app/views/messages/_course_show.html.erb +++ b/app/views/messages/_course_show.html.erb @@ -25,6 +25,8 @@ } $(function() { init_activity_KindEditor_data(<%= @topic.id%>,null,"85%"); + /*showNormalImage('activity_description_<%#= topic.id %>'); + showNormalImage('reply_content_<%#= topic.id %>');*/ });
@@ -73,7 +75,7 @@
<%= format_time( @topic.created_on)%>
-
+
<%= @topic.content.html_safe%>
@@ -97,6 +99,7 @@
<% @replies.each_with_index do |reply,i| %> +
<%= link_to image_tag(url_to_avatar(reply.author), :width => 33,:height => 33), user_path(reply.author) %> @@ -109,7 +112,9 @@ <%= link_to reply.try(:author).try(:realname), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %> <% end %>
-
<%= reply.content.html_safe%>
+
+ <%= reply.content.html_safe%> +
<%= format_time(reply.created_on) %>