fix error

This commit is contained in:
chiu 2020-03-25 17:45:17 +08:00
parent 024068b61c
commit 82034a3d52
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
})
</script>
<% @data['site_anncs'].each_with_index do |v,i| %>
<% Array(@data['site_anncs']).compact.each_with_index do |v,i| %>
<div class="detail-only-content-<%= i %>">
<div class="content" data-href="<%= v['see_more_link'] %>">
<%= v['content'][I18n.locale.to_s].to_s.html_safe %>
@ -44,7 +44,7 @@
<div class="box-content">
<table class="table table-bordered table-striped table-hover">
<tbody>
<% @data['site_anncs'].each_with_index do |v,i| %>
<% Array(@data['site_anncs']).compact.each_with_index do |v,i| %>
<tr>
<td style="cursor: pointer;" onclick="see_detail(<%= i %>)"><%= v['title'][I18n.locale.to_s].to_s.html_safe %></td>
</tr>