fix error
This commit is contained in:
parent
024068b61c
commit
82034a3d52
|
@ -26,7 +26,7 @@
|
||||||
})
|
})
|
||||||
</script>
|
</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="detail-only-content-<%= i %>">
|
||||||
<div class="content" data-href="<%= v['see_more_link'] %>">
|
<div class="content" data-href="<%= v['see_more_link'] %>">
|
||||||
<%= v['content'][I18n.locale.to_s].to_s.html_safe %>
|
<%= v['content'][I18n.locale.to_s].to_s.html_safe %>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<table class="table table-bordered table-striped table-hover">
|
<table class="table table-bordered table-striped table-hover">
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @data['site_anncs'].each_with_index do |v,i| %>
|
<% Array(@data['site_anncs']).compact.each_with_index do |v,i| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="cursor: pointer;" onclick="see_detail(<%= i %>)"><%= v['title'][I18n.locale.to_s].to_s.html_safe %></td>
|
<td style="cursor: pointer;" onclick="see_detail(<%= i %>)"><%= v['title'][I18n.locale.to_s].to_s.html_safe %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue