modify the judge of the nil class of identity in app/views/bids/_project_list.html.erb
This commit is contained in:
parent
a50aff3fb4
commit
cbe22e4e60
|
@ -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>
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue