From 736db91cb513f398d0d9e776cdd2d338bab2b9b0 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 11 Dec 2014 17:43:16 +0800 Subject: [PATCH] category fix --- app/views/admin/archive_files/_index.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/admin/archive_files/_index.html.erb b/app/views/admin/archive_files/_index.html.erb index 18bd30a..08d50f9 100644 --- a/app/views/admin/archive_files/_index.html.erb +++ b/app/views/admin/archive_files/_index.html.erb @@ -14,7 +14,12 @@ <% @archives.each do |archive| %> <%= archive.status_for_table %> - <%= archive.category.title %> + + <%= archive.category.title rescue "" %> + <% if (archive.category.disable rescue false) %> + <%= t(:disabled) %> + <% end %> + <%= archive.title %>