From f820ec62f69b595a8bc1b2d3673559495e99396a Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 21 Feb 2020 21:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E8=AF=95?= =?UTF-8?q?=E9=A2=98=E5=AE=A1=E6=A0=B8--=E9=A2=98=E5=B9=B2=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E8=BF=87=E5=A4=9A=E6=97=B6=EF=BC=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admins/item_authentications/shared/_list.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/admins/item_authentications/shared/_list.html.erb b/app/views/admins/item_authentications/shared/_list.html.erb index 628e140a7..34e29d845 100644 --- a/app/views/admins/item_authentications/shared/_list.html.erb +++ b/app/views/admins/item_authentications/shared/_list.html.erb @@ -30,11 +30,13 @@ <%= user.real_name %> <%= raw [user.school_name.presence, user.department_name.presence].compact.join('
') %> - + <% if item.item_type == "PROGRAM" %> - <%= link_to item.name, "/problems/#{item.container&.identifier}/edit", target: "_blank" %> + <%= link_to item.name, "/problems/#{item.container&.identifier}/edit", class: "d-inline-block text-truncate", + style: "max-width: 280px", target: "_blank", data: { toggle: 'tooltip', title: "#{item.name}"} %> <% else %> - <%= link_to item.name, admins_item_authentication_path(apply), remote: true %> + <%= link_to item.name, admins_item_authentication_path(apply), remote: true, class: "d-inline-block text-truncate", + style: "max-width: 280px", data: { toggle: 'tooltip', title: "#{item.name}"} %> <% end %> <%= item.type_string %>