From b2f939fa92778a241204639535f61b1f81b74f02 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 24 Jun 2016 17:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_reply_to.html.erb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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