From dec3a7bcbc1748b75d401ab0bfd4668e9cafbafe Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 1 Sep 2017 14:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E6=96=B0=E9=A1=B5=E9=9D=A2win.open?= =?UTF-8?q?=E6=94=B9=E6=88=90a=E6=A0=87=E7=AD=BE=EF=BC=88=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/subjects/show.html.erb | 39 +++++++++++++++++--------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/app/views/subjects/show.html.erb b/app/views/subjects/show.html.erb index 04c749ace..8b96050c1 100644 --- a/app/views/subjects/show.html.erb +++ b/app/views/subjects/show.html.erb @@ -137,25 +137,28 @@ <%# end %>

-
-
-

<%= link_to image_tag(url_to_avatar(@subject.user), :width =>"80", :height => "80", :class => "bor-radius-all", :alt=>"头像"),user_path(@subject.user), :target => '_blank' %>

-

<%= @subject.user.try(:show_name) %>

-

<%= @subject.user.school_name %>

-
- - -
- <% subject_co_users(@subject).each do |user| %> -
-
-

<%= image_tag(url_to_avatar(user), :width =>"80", :height => "80", :class => "bor-radius-all", :alt=>"头像") %>

-

<%= user.try(:show_name) %>

-

<%= user.school_name + user.identity %>

-
- + +
+
+

<%= image_tag(url_to_avatar(@subject.user), :width =>"80", :height => "80", :class => "bor-radius-all", :alt=>"头像") %>

+

<%= @subject.user.try(:show_name) %>

+

<%= @subject.user.school_name %>

+ +
+
+ + <% subject_co_users(@subject).each do |user| %> + +
+
+

<%= image_tag(url_to_avatar(user), :width =>"80", :height => "80", :class => "bor-radius-all", :alt=>"头像") %>

+

<%= user.try(:show_name) %>

+

<%= user.school_name + user.identity %>

+
+ +
+
<% end %>