= turbo_frame_tag dom_id(stop_word) do %div{class: "flex flex-col space-y-2 border rounded-md p-2 mt-2"} %div{class: "flex justify-between text-xs"} %span{class: "font-bold"} = "##{stop_word.id}" %span{class: "text-gray-500"} = link_to stop_word.created_at, stop_word, data: {turbo: false} %div{class: "space-y-0.5"} %div{class: "text-xl font-meidum"}= stop_word.key %div{class: "flex space-x-2"} %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=I18n.t("censor_log.action.#{stop_word.ugc}") %div{class: "text-gray-500 text-xs text-center"} UGC内容处理 %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=I18n.t("censor_log.action.#{stop_word.username}") %div{class: "text-gray-500 text-xs text-center"} 用户名处理 %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=I18n.t("censor_log.action.#{stop_word.nickname}") %div{class: "text-gray-500 text-xs text-center"} 用户昵称处理 %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=I18n.t("censor_log.action.#{stop_word.signature}") %div{class: "text-gray-500 text-xs text-center"} 签名处理 %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=I18n.t("censor_log.action.#{stop_word.dialog}") %div{class: "text-gray-500 text-xs text-center"} 私信处理 %div{class: "flex flex-col justify-center border rounded-md p-1"} %div{class: "text-center"}=stop_word.replacement || "**" %div{class: "text-gray-500 text-xs text-center"} 过滤词替换 %div{class: "flex justify-end space-x-2 text-sm text-blue-600"} %span = link_to '编辑', edit_stop_word_path(stop_word) %span = button_to '删除', stop_word, method: :delete, data: { confirm: 'Are you sure?' }, class: "cursor-pointer bg-white text-red-600"