|
|
|
@ -184,6 +184,7 @@
|
|
|
|
|
<div class="homepagePostReplyContainer borderBottomNone minHeight48">
|
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= @article.id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(@article.author_id), :alt => "用户头像" %></div>
|
|
|
|
|
<div class="homepagePostReplyInputContainer" style="margin-top: 8px">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<div nhname='new_message_<%= @article.id%>' style="display:none;">
|
|
|
|
|
<%= form_for 'blog_comment',:url => {:action => 'reply',:controller => 'blog_comments',:user_id=>@article.author.id,:blog_id=>@article.blog_id, :id => @article.id},:method => "post",:html => {:multipart => true, :id => 'message_form'} do |f|%>
|
|
|
|
|
<input type="hidden" name="course_id" value="<%= @course.id%>">
|
|
|
|
@ -198,6 +199,9 @@
|
|
|
|
|
<p nhname='contentmsg_<%= @article.id%>'></p>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= render :partial => "users/show_unlogged" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|