更改:小程序首页配置渲染bug

This commit is contained in:
yystopf 2025-10-24 15:48:06 +08:00
parent 869c874e21
commit f859f02799
1 changed files with 6 additions and 2 deletions

View File

@ -1,11 +1,15 @@
<td><%= page_no %></td>
<td><%= c.title %></td>
<td><%= c.content.truncate(50) %></td>
<td><%= c.fake_id %></td>
<td><%= c.tag_field %></td>
<td><%= c.url_or_uuid.present? ? c.url_or_uuid.truncate(50) : "" %></td>
<td><%= c.order_index %></td>
<td><%= c.tag_field.to_s.include?("活动") ? link_to(c.watchers_count, "/admins/platform_communicates/#{c.id}") : "--"%></td>
<td class="action-container">
<% if c.vote.present? %>
<%= link_to "编辑投票", edit_vote_admins_platform_communicate_path(c), class: "action" %>
<% else %>
<%= link_to "新增投票", new_vote_admins_platform_communicate_path(c), class: "action" %>
<% end %>
<%= link_to c.status ? "下架" : "上架", "/admins/platform_communicates/#{c.id}/online_switch.js", style: "#{c.status? ? 'color:#FF6800;' : ''}", method: :post, remote: true%>
<%= link_to "编辑", edit_admins_platform_communicate_path(c), remote: true, class: "action" %>
<%= link_to "删除", admins_platform_communicate_path(c), method: :delete, data:{confirm: "确认删除的吗?"}, class: "action" %>