diff --git a/app/views/users/_reply_to.html.erb b/app/views/users/_reply_to.html.erb index 381295dfc..621b56fbd 100644 --- a/app/views/users/_reply_to.html.erb +++ b/app/views/users/_reply_to.html.erb @@ -1,11 +1,9 @@ -
<% if User.current.logged? %>
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %>
-
- - <% if @type == 'HomeworkCommon' %> +
+ <% if @type == 'HomeworkCommon' %> <%= form_for('new_form',:url => {:controller => 'words', :action => 'reply_to_homework', :id => reply.id},:method => "post", :remote => true) do |f| %> > > @@ -31,12 +29,11 @@
<% end%> <% end %> - +
+
<% else %> <%= render :partial => "users/show_unlogged_reply" %> <% end %> -
-
\ No newline at end of file