进入他人的首页,增加“TA的主页”入口
This commit is contained in:
parent
283c880531
commit
230e8c3605
|
@ -5,14 +5,14 @@
|
||||||
<li><%= link_to '个人主页', homepage_user_path(@user), :class => "user_editinfo", :target => '_blank' %></li>
|
<li><%= link_to '个人主页', homepage_user_path(@user), :class => "user_editinfo", :target => '_blank' %></li>
|
||||||
<li class="cl"></li>
|
<li class="cl"></li>
|
||||||
<% else%>
|
<% else%>
|
||||||
<!-- <li style="width: 119px; float: left; border-right: 1px solid #ddd;">
|
<li style="width: 119px; float: left; border-right: 1px solid #ddd;">
|
||||||
<%# if target.base_homepage.nil? %>
|
<% if target.base_homepage.nil? %>
|
||||||
<a href="javascript:void(0)" class ="user_editinfo" style="color: #cccccc" title="该用户暂未设置主页">主页</a>
|
<a href="javascript:void(0)" class ="user_editinfo" style="color: #cccccc" title="该用户暂未设置主页">TA的主页</a>
|
||||||
<%# else %>
|
<% else %>
|
||||||
<%#=link_to "主页", homepage_user_path(@user.login), :class => 'user_editinfo', :target => '_blank' %>
|
<%=link_to "TA的主页", homepage_user_path(@user.login), :class => 'user_editinfo', :target => '_blank' %>
|
||||||
<%# end %>
|
<% end %>
|
||||||
</li>-->
|
</li>
|
||||||
<li>
|
<li style="width: 118px; float: left;">
|
||||||
<%if(target.watched_by?(User.current))%>
|
<%if(target.watched_by?(User.current))%>
|
||||||
<%= link_to "取消关注",watch_path(:object_type=> 'user',:object_id=>target.id,:target_id=>target.id),:class => "user_editinfo", :method => "delete",:remote => "true", :title => "取消关注"%>
|
<%= link_to "取消关注",watch_path(:object_type=> 'user',:object_id=>target.id,:target_id=>target.id),:class => "user_editinfo", :method => "delete",:remote => "true", :title => "取消关注"%>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Loading…
Reference in New Issue