调整需求的评价,隐藏个人账户的首选项内容

This commit is contained in:
fanqiang 2013-10-14 10:09:10 +08:00
parent bcb66f2b32
commit 2fbf025c2f
4 changed files with 21 additions and 8 deletions

View File

@ -161,6 +161,18 @@ class User < Principal
false
end
end
def show_name
unless self.user_extensions.nil?
if self.user_extensions.identity == 2
firstname
else
lastname+firstname
end
else
lastname+firstname
end
end
## end
def count_new_jour

View File

@ -19,7 +19,7 @@
<!-- 如果需求到期 并且是该需求的管理员 -->
<td style="color: red;" align="right" valign="0.1em" width="35%">
<td style="color: red;" align="right" valign="0.1em" width="15%">
<strong><span id="reward_result_<%=b_project.id%>">
<% if get_prize(b_project).nil? or get_prize(b_project) == "" %>

View File

@ -14,7 +14,7 @@
<% end %>
</table>
<% @bidding_project.each do |b_project|%>
<!-- <% @bidding_project.each do |b_project|%>
<table width="90%" border="0" align='center'>
<tr>
<td>
@ -55,7 +55,7 @@
</table></td>
</tr>
</table>
<% end %>
<% end %> -->
<% else %>
<table width="1000px" border="0" style="padding-left: 15px">
@ -68,7 +68,7 @@
<% end %>
</table>
<% @bidding_project.each do |b_project|%>
<!-- <% @bidding_project.each do |b_project|%>
<table width="90%" border="0" align='center'>
<tr>
<td>
@ -106,5 +106,6 @@
</table></td>
</tr>
</table>
<% end %> -->
<% end %>
<% end %>
<%= render :partial=> "list_projects",:locals => {:bidding_project => @bidding_project,:bid => @bid }%>

View File

@ -483,13 +483,13 @@ $().ready(function(){
</p></div>
</fieldset>
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
<!-- <fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
<legend onclick="toggleFieldset(this);">
<%= l(:label_preferences)%>
</legend>
<div style="padding-left: 26px;"> <!-- modified by ming -->
<div style="padding-left: 26px;">
<%= render :partial => 'users/preferences' %></div>
</fieldset>
</fieldset> -->
<!-- added by william -->
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;display: none">
<legend onclick="toggleFieldset(this);">