检查标记未显示

时间:2018-06-14 12:50:31

标签: html ruby-on-rails

我只想添加侧边栏项目的复选标记。例如,如果用户提供了有关列表的地址信息,则应显示复选标记。但是勾选标记根本没有显示出来。为什么呢?

<ul class="sidebar-list">
<li class="sidebar-item">
<%= link_to "Listing", listing_wall_path, class: "sidebar-link active" %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>

</li>

 <li class="sidebar-item">
 <%= link_to "Pricing", pricing_wall_path, class: "sidebar-link active" %>
 <% if !@wall.price.blank? %>
  <span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>
</li>

<li class="sidebar-item">
<%= link_to "Description", description_wall_path, class: "sidebar-link 
active" %>
<% if !@wall.wall_name.blank? %>
  <span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>


 </li>
 <li class="sidebar-item">
  <%= link_to "Photos", photo_upload_wall_path, class: "sidebar-link active" %>
  <% if !@wall.photos.blank? %>
      <span class="pull-right text-babu"><i class="fa fa-check"></i></span>
    <% end %>


</li>

<li class="sidebar-item">
 <%= link_to "Location", location_wall_path, class: "sidebar-link active" %>
 <% if !@wall.addressy.blank? %>
  <span class="pull-right text-babu"><i class="fa fa-check"></i></span>
  <% end %>

</li>

0 个答案:

没有答案