From cce295ba78f8ccd8996fefc1dc9e2018beac842e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Thu, 18 Jul 2024 20:54:13 +0800 Subject: [PATCH] Fix edit_sort. --- .../admin/announcements/_edit_sort.html.erb | 2 +- .../admin/announcements/edit_sort.html.erb | 75 ++++++------------- config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 4 files changed, 25 insertions(+), 54 deletions(-) diff --git a/app/views/admin/announcements/_edit_sort.html.erb b/app/views/admin/announcements/_edit_sort.html.erb index 2bc9766..0ca1367 100644 --- a/app/views/admin/announcements/_edit_sort.html.erb +++ b/app/views/admin/announcements/_edit_sort.html.erb @@ -23,7 +23,7 @@ <%= number_field_tag nil,annc.sort_number,class: 'sort_number',step: 1 %> - <%= annc.title %> + <%= annc.title.html_safe %> <%= format_value annc.postdate %> diff --git a/app/views/admin/announcements/edit_sort.html.erb b/app/views/admin/announcements/edit_sort.html.erb index 2764a76..d0dab0f 100644 --- a/app/views/admin/announcements/edit_sort.html.erb +++ b/app/views/admin/announcements/edit_sort.html.erb @@ -18,6 +18,9 @@ <%= render partial: 'edit_sort' %>