From f859f027991e869eaa4e1d38df129252dd40ea70 Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 24 Oct 2025 15:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E9=A6=96=E9=A1=B5=E9=85=8D=E7=BD=AE=E6=B8=B2=E6=9F=93?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admins/platform_communicates/_td.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/admins/platform_communicates/_td.html.erb b/app/views/admins/platform_communicates/_td.html.erb index 2c50e36df..ee290773a 100644 --- a/app/views/admins/platform_communicates/_td.html.erb +++ b/app/views/admins/platform_communicates/_td.html.erb @@ -1,11 +1,15 @@ <%= page_no %> <%= c.title %> <%= c.content.truncate(50) %> -<%= c.fake_id %> -<%= c.tag_field %> +<%= c.url_or_uuid.present? ? c.url_or_uuid.truncate(50) : "" %> <%= c.order_index %> <%= c.tag_field.to_s.include?("活动") ? link_to(c.watchers_count, "/admins/platform_communicates/#{c.id}") : "--"%> + <% 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" %>