增加粉丝和关注处更多的链接

This commit is contained in:
nieguanghui 2013-08-17 10:44:25 +08:00
parent 14fb820df3
commit 647781effa
3 changed files with 24 additions and 2 deletions

View File

@ -1300,6 +1300,14 @@ module ApplicationHelper
#added by nie
# Display watcher picture
def show_more_watchers?(obj)
if User.watched_by(obj.id).count > 12
return true
else
return false
end
end
def show_watcher_profile(obj)
count = 0
html = ''
@ -1314,6 +1322,14 @@ module ApplicationHelper
end
#display fans picture
def show_more_fans?(obj)
if obj.watcher_users.count > 12
return true
else
return false
end
end
def show_fans_picture(obj)
html = ''
count = 0

View File

@ -69,7 +69,7 @@
</table>
</div>
<!--Modified by nie-->
<!--tags-->
<div class="user_underline"></div>
<!-- <div class="user_fans"> -->
@ -86,6 +86,9 @@
<div class="user_fans">
<div class="font_title_left">
<strong><%= l(:label_user_watcher) %></strong>
<% if show_more_watchers?(@user) %>
<div style="font-size: 11px; display: inline; float: right; margin-top: 5px; margin-right: 20px" ><%= link_to l(:label_more), :controller => "users", :action => "user_watchlist"%></div>
<% end %>
</div>
<div class="left_wf">
@ -101,6 +104,9 @@
<div class="user_fans">
<div class="font_title_left">
<strong><%= l(:label_user_fans) %></strong>
<% if show_more_fans?(@user) %>
<div style="font-size: 11px; display: inline; float: right; margin-top: 5px; margin-right: 20px" ><%= link_to l(:label_more), :controller => "users", :action => "user_fanslist"%></div>
<% end %>
</div>
<div class="left_wf">
<table>

View File

@ -137,7 +137,7 @@ software development and software crowdsourcing.</td></tr>
<!--add by huang-->
<!--add by huang-->
<div style="height:230px;">
<div style="height:250px;">
<div class="welcone_left">
<table width="350px">
<tr>