From 239178e4e14f31cfc211415011f9fef8c09f6830 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 5 May 2017 19:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=AA=E4=BA=BA=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E2=80=9C=E7=BC=96=E8=BE=91=E6=88=91=E7=9A=84?= =?UTF-8?q?=E8=B5=84=E6=96=99=E2=80=9D=E3=80=81=E9=9A=90=E8=97=8F=E2=80=9C?= =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/show.html.erb | 80 +++++++++++++++++------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 7eb1c216c..8d0631422 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -48,11 +48,11 @@
<% if current_user %>
-

- <%= link_to '编辑我的资料', my_account_path %> -

+ + + -

+

<% update_visiti_count @user %> <%= @user.visits.to_i %> 次访问 @@ -116,42 +116,42 @@

-
-

<%= str %>的博客 - <%= @blog_count %> -

- <% if @blog_count == 0 %> -

- <% if current_user %> - 你一篇博客也没写过, - 现在写博客 - <% else %> - <%= @user.show_name %>很懒,一篇博客也没写过 - <% end %> -

- <% else %> -
-
- <% if current_user %> - <%= link_to '发布博客', user_blogs_path(:user_id => @user), :target => '_blank', :class => 'mr5 color-grey' %> - <% end %> - <% if @blog_count > 3 %> - <%= link_to '查看更多', user_blogs_path(:user_id => @user), :target => '_blank', :class => 'color-grey' %> - <% end %> -
- <% @blog_list.each_with_index do |blog, index| %> -
- <%= link_to blog.title.to_s.html_safe, user_blog_blog_comment_path(:user_id => blog.author, :blog_id => blog.blog.id, :id => blog), :class => "font-14 changecolor" %> -

- <%= format_time blog.created_at %> 发布 - - <%= blog.visits %> -

-
- <% end %> -
- <% end %> -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<%= render :partial => 'edu_user_watch_fan_list', :locals => {:current_user => current_user} %>