modify the judge of the nil class of identity in app/views/bids/_project_list.html.erb

This commit is contained in:
xianbo 2013-10-26 15:04:00 +08:00
parent a50aff3fb4
commit cbe22e4e60
2 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,13 @@
<!-- fq -->
<%= render_flash_messages %>
<% if @bid.reward_type == 3 %>
<% unless User.current.nil?%>
<% if User.current.user_extensions.identity == 1 %>
<div class="font_lighter">
<p><%= l(:label_homework_prompt) %></p>
<P><%= l(:label_homework_prompt_content) %></P>
</div>
<% end %>
<% if User.current.logged?%>
<% if User.current.user_extensions.identity == 1 %>
<div class="font_lighter">
<p><%= l(:label_homework_prompt) %></p>
<P><%= l(:label_homework_prompt_content) %></P>
</div>
<% end %>
<% end %>
<table width="1000px" border="0" style="padding-left: 15px">
<td class="font_lighter" style="font-size: 15px;"><%= l(:label_homework_project) %>(<%= bidding_project.count%>)</td>

View File

@ -18,7 +18,7 @@ else
when 2
case get_prize(@b_p)
when '-1'
image_tag("/images/bid/s_reward.png")
image_tag("/images/bid/special_reward.png")
when '1'
when '0'
image_tag("/images/bid/first_reward.png")