Merge branch 'develop' of 10.0.47.245:/home/trustie2 into develop
This commit is contained in:
commit
516d213ac4
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue