diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index 0706860f9..ae8dd5ed2 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -31,7 +31,7 @@

讨论区共有<%= @topic_count %>个帖子

<% if @topics.any? %> <% @topics.each do |topic| %> -
+
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
@@ -39,7 +39,7 @@ <%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>

  <%= h(topic.subject) %>

<% if topic.editable_by?(User.current) %> - <%= l(:button_edit) %> + <%= l(:button_edit) %> <% end %> <%= link_to( l(:button_delete), @@ -164,17 +164,34 @@ KindEditor.ready(function(K){ $("div[nhname='container_board']").each(function(){ var container = $(this); + var about_talk = $("div[nhname='about_talk']",container); nh_init_board({ kindutil:K, showbtn:$("a[nhname='showbtn']",container), - about_talk:$("div[nhname='about_talk']",container), - inputsubject:$("input[nhname='inputsubject']",container), - subjectmsg:$("p[nhname='subjectmsg']",container), - textarea:$("textarea[nhname='textarea']",container), - contentmsg:$("p[nhname='contentmsg']",container), - submitbtn:$("a[nhname='submitbtn']",container), - cancelbtn:$("a[nhname='cancelbtn']",container), - form:$("form[nhname='form']",container) + about_talk:about_talk, + inputsubject:$("input[nhname='inputsubject']",about_talk), + subjectmsg:$("p[nhname='subjectmsg']",about_talk), + textarea:$("textarea[nhname='textarea']",about_talk), + contentmsg:$("p[nhname='contentmsg']",about_talk), + submitbtn:$("a[nhname='submitbtn']",about_talk), + cancelbtn:$("a[nhname='cancelbtn']",about_talk), + form:$("form[nhname='form']",about_talk) + }); + }); + $("div[ecname='container_board_reply']").each(function(){ + var container = $(this); + var about_talk = $("div[nhname='about_talk_reply']",container); + nh_init_board({ + kindutil:K, + showbtn:$("a[nhname='showbtn_reply']",container), + about_talk:about_talk, + inputsubject:$("input[nhname='inputsubject']",about_talk), + subjectmsg:$("p[nhname='subjectmsg']",about_talk), + textarea:$("textarea[nhname='textarea']",about_talk), + contentmsg:$("p[nhname='contentmsg']",about_talk), + submitbtn:$("a[nhname='submitbtn']",about_talk), + cancelbtn:$("a[nhname='cancelbtn']",about_talk), + form:$("form[nhname='form']",about_talk) }); }); });