From 5a3ad0c6615c580d703163bf0783c483897337b6 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 30 Aug 2019 10:19:33 +0800 Subject: [PATCH] admins: fix --- .../admins/departments/shared/_department_item.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/admins/departments/shared/_department_item.html.erb b/app/views/admins/departments/shared/_department_item.html.erb index 2f39d6248..11584909d 100644 --- a/app/views/admins/departments/shared/_department_item.html.erb +++ b/app/views/admins/departments/shared/_department_item.html.erb @@ -14,7 +14,13 @@ <%= render partial: 'admins/departments/shared/member_users', locals: { department: department } %> -<%= link_to department.identifier.to_s, '#', target: '_blank' %> + + <% if department.identifier.present? %> + <%= link_to department.identifier.to_s, statistics_college_path(department.identifier), target: '_blank' %> + <% else %> + -- + <% end %> + <%= department.host_count %> <%= department.created_at&.strftime('%Y-%m-%d %H:%M') %>