|
|
@ -1,7 +1,7 @@
|
|
|
|
<div class="orig_reply_box borderBottomNone" id="reply_to_message_<%= reply.id%>">
|
|
|
|
<div class="<%= User.current.logged? ? 'orig_reply_box' : 'orig_reply_box2' %> borderBottomNone" id="reply_to_message_<%= reply.id%>">
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= reply.id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %></div>
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= reply.id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %></div>
|
|
|
|
<div class="orig_textarea mb10 fl">
|
|
|
|
<div class="orig_textarea mb10 fl">
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
|
|
|
<div nhname='new_message_<%= reply.id%>'>
|
|
|
|
<div nhname='new_message_<%= reply.id%>'>
|
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'reply_to_homework', :id => reply.id},:method => "post", :remote => true) do |f| %>
|
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'reply_to_homework', :id => reply.id},:method => "post", :remote => true) do |f| %>
|
|
|
|
<input type="hidden" name="is_in_course" value=<%=@is_in_course %>>
|
|
|
|
<input type="hidden" name="is_in_course" value=<%=@is_in_course %>>
|
|
|
@ -16,7 +16,7 @@
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<%= render :partial => "users/show_unlogged" %>
|
|
|
|
<%= render :partial => "users/show_unlogged_reply" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|