dev_SaaS
huang 6 years ago
parent 5191b8524c
commit 4c8ac8a8b6

@ -20,8 +20,8 @@
<span class="mr10 fl squareIconSpan"> <span class="mr10 fl squareIconSpan">
<i class="iconfont icon-shixun fl mr3" data-tip-down="章节"></i><%= subject.stages_count %></span> <i class="iconfont icon-shixun fl mr3" data-tip-down="章节"></i><%= subject.stages_count %></span>
<% end %> <% end %>
<% if subject.member_count > 0 %> <% if subject.try(:member_count).to_i > 0 %>
<span class="mr10 fl squareIconSpan"><i class="iconfont icon-chengyuan fl mr3" data-tip-down="学习人数"></i><%= subject.member_count %></span> <span class="mr10 fl squareIconSpan"><i class="iconfont icon-chengyuan fl mr3" data-tip-down="学习人数"></i><%= subject.try(:member_count) %></span>
<% end %> <% end %>
</p> </p>
</div> </div>

Loading…
Cancel
Save