fix error
This commit is contained in:
parent
024068b61c
commit
82034a3d52
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue